83% brightedge-autopilot

Code Review | BrightEdge Autopilot

WordPress plugin BrightEdge Autopilot scored83%from 54 tests.

About plugin

  • Plugin page: brightedge-autopilot
  • Plugin version: 1.1.13
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Apr 16, 2020
  • Latest release: Dec 1, 2023
  • Number of updates: 24
  • Update frequency: every 55.3 days
  • Top authors: brightedge (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /2,479 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.54MB] [CPU: ▼7.33ms] Passed 4 tests

Server-side resources used by BrightEdge Autopilot
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.02 ▲0.5640.25 ▲0.23
Dashboard /wp-admin3.86 ▲0.5146.37 ▼16.16
Posts /wp-admin/edit.php3.91 ▲0.5549.18 ▲2.07
Add New Post /wp-admin/post-new.php6.44 ▲0.5588.91 ▼15.47
Media Library /wp-admin/upload.php3.78 ▲0.5538.83 ▲5.47
BrightEdge Autopilot /wp-admin/options-general.php?page=be_ixf3.7431.20

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 18 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_wp_be_ixf_lem_widget
be_ixf

Browser metrics Passed 4 tests

BrightEdge Autopilot: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲4714.70 ▲0.431.71 ▲0.0542.50 ▼1.97
Dashboard /wp-admin2,202 ▲225.66 ▲0.0492.27 ▼6.7838.83 ▼8.71
Posts /wp-admin/edit.php2,101 ▲12.01 ▲0.0539.15 ▲3.7038.84 ▲2.95
Add New Post /wp-admin/post-new.php1,528 ▲223.63 ▲0.38587.33 ▼37.3250.04 ▼4.79
Media Library /wp-admin/upload.php1,398 ▼24.19 ▼0.01102.92 ▲4.2942.09 ▼0.85
BrightEdge Autopilot /wp-admin/options-general.php?page=be_ixf1,0622.1623.4136.12

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_wp_be_ixf_lem_widget
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/brightedge-autopilot/src/WidgetLem.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/brightedge-autopilot/src/WidgetLem.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/brightedge-autopilot/src/WidgetLem.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention: You can look at the official readme.txt

brightedge-autopilot/be_ixf_php_wp.php 77% from 13 tests

The main file in "BrightEdge Autopilot" v. 1.1.13 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Text Domain: Please use dashes and lowercase characters for text domains
  • Domain Path: The domain path points to an invalid folder, "/languages/" does not exist
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("brightedge-autopilot.php" instead of "be_ixf_php_wp.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin2,563 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP154053892,562
JSON1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity22.53
▷ Minimum class complexity1.00
▷ Maximum class complexity123.00
Average method complexity3.30
▷ Minimum method complexity1.00
▷ Maximum method complexity73.00
Code structure
Namespaces2
Interfaces1
Traits0
Classes16
▷ Abstract classes00.00%
▷ Concrete classes16100.00%
▷ Final classes00.00%
Methods173
▷ Static methods3218.50%
▷ Public methods16193.06%
▷ Protected methods105.78%
▷ Private methods21.16%
Functions10
▷ Named functions440.00%
▷ Anonymous functions660.00%
Constants24
▷ Global constants14.17%
▷ Class constants2395.83%
▷ Public constants23100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin