78% excerpt-editor-for-beaver-builder

Code Review | Excerpt Editor for Beaver Builder

WordPress plugin Excerpt Editor for Beaver Builder scored78%from 54 tests.

About plugin

  • Plugin page: excerpt-editor-fo...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.9
  • WordPress version: 6.3.1
  • First release: Jan 19, 2018
  • Latest release: Jan 22, 2018
  • Number of updates: 10
  • Update frequency: every 0.3 days
  • Top authors: Krielkip (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,423 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼4.58ms] Passed 4 tests

Server-side resources used by Excerpt Editor for Beaver Builder
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0144.50 ▲4.60
Dashboard /wp-admin3.31 ▼0.0347.55 ▼16.65
Posts /wp-admin/edit.php3.36 ▲0.0149.23 ▼9.23
Add New Post /wp-admin/post-new.php5.89 ▲0.0194.36 ▲8.04
Media Library /wp-admin/upload.php3.24 ▲0.0140.26 ▲2.98

Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Excerpt Editor for Beaver Builder: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,798 ▲3714.25 ▼0.311.69 ▼0.0344.95 ▲0.23
Dashboard /wp-admin2,204 ▲275.48 ▼0.1883.42 ▼11.0539.98 ▼1.35
Posts /wp-admin/edit.php2,109 ▲91.98 ▼0.0340.28 ▼0.8236.41 ▼3.51
Add New Post /wp-admin/post-new.php1,537 ▲1123.03 ▼0.62591.71 ▼135.6157.76 ▲8.35
Media Library /wp-admin/upload.php1,412 ▲124.18 ▲0.0197.10 ▼5.7142.81 ▼3.49

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/excerpt-editor-for-beaver-builder/fields/showexcerpt.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'FLBuilder' not found in wp-content/plugins/excerpt-editor-for-beaver-builder/settings/bb-excerpt-form.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Tags: You are using too many tags: 15 tag instead of maximum 10
You can look at the official readme.txt

excerpt-editor-for-beaver-builder/bb-addon-excerpt.php 92% from 13 tests

The entry point to "Excerpt Editor for Beaver Builder" version 1.0.2 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("excerpt-editor-for-beaver-builder.php" instead of "bb-addon-excerpt.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin313 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP438138152
PO File22424122
JavaScript1131439

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity1.87
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods15
▷ Static methods426.67%
▷ Public methods1493.33%
▷ Protected methods00.00%
▷ Private methods16.67%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected