74% author-box-pro

Code Review | Melabu WP Author Box Pro

WordPress plugin Melabu WP Author Box Pro scored74%from 54 tests.

About plugin

  • Plugin page: author-box-pro
  • Plugin version: 1.0.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-4.9.7
  • WordPress version: 6.3.1
  • First release: Mar 4, 2017
  • Latest release: May 7, 2019
  • Number of updates: 28
  • Update frequency: every 28.3 days
  • Top authors: ProDeveloper (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /802 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.32MB] [CPU: ▲3.63ms] Passed 4 tests

This is a short check of server-side resources used by Melabu WP Author Box Pro
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.91 ▲0.4542.07 ▲3.43
Dashboard /wp-admin3.66 ▲0.3653.32 ▲3.03
Posts /wp-admin/edit.php3.71 ▲0.3660.51 ▲19.37
Add New Post /wp-admin/post-new.php6.17 ▲0.2990.66 ▼1.34
Media Library /wp-admin/upload.php3.50 ▲0.2741.69 ▲9.41
MB ABP /wp-admin/admin.php?page=melibu-plugin-author3.5545.83
Options /wp-admin/admin.php?page=melibu-plugin-author-admin-control-menu-13.5943.07
About /wp-admin/admin.php?page=melibu-plugin-author-admin-control-menu-23.5539.89

Server storage [IO: ▲4.98MB] [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: 68 new files
Database: 1 new table, 10 new options
New tables
wp_melibu_ab
New WordPress options
theysaidso_admin_options
mb-author-box-pro-version
widget_melibu-author-box-pro-widget-id
mb-author-admin-colors
mb-author-box-pro-db-version
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Melabu WP Author Box Pro: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,994 ▲24814.82 ▲0.071.47 ▼0.3640.07 ▼3.43
Dashboard /wp-admin2,378 ▲1876.48 ▲1.60125.04 ▲18.8588.30 ▲43.11
Posts /wp-admin/edit.php2,299 ▲2103.54 ▲1.5357.39 ▲17.8771.37 ▲36.43
Add New Post /wp-admin/post-new.php1,559 ▲2523.38 ▲0.23665.49 ▼15.9938.84 ▼14.08
Media Library /wp-admin/upload.php1,441 ▲534.23 ▲0.0881.67 ▼26.9982.98 ▲37.76
MB ABP /wp-admin/admin.php?page=melibu-plugin-author1,3463.1539.25119.16
Options /wp-admin/admin.php?page=melibu-plugin-author-admin-control-menu-12,9266.69122.79123.21
About /wp-admin/admin.php?page=melibu-plugin-author-admin-control-menu-21,4453.0940.1591.71

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-includes/option.php+2520
    Trying to access array offset on value of type null
  • The uninstall procedure has failed, leaving 8 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_melibu-author-box-pro-widget-id
    • db_upgraded
    • mb-author-admin-colors
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 15× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/author-box-pro/classes/class.MelibuWidget.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/author-box-pro/html/panel/social.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/author-box-pro/classes/class.MelibuAuthor.php:450
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/author-box-pro/html/panel/display.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/author-box-pro/html/panel/optionsobj.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/author-box-pro/html/panel/customcss.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/author-box-pro/html/panel/widget.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/author-box-pro/html/panel/permission.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_plugin_data() in wp-content/plugins/author-box-pro/html/panel.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/author-box-pro/html/panel/tabs.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: box, profile, colors, plugin, shortcode...

author-box-pro/author-box-pro.php Passed 13 tests

The principal PHP file in "Melabu WP Author Box Pro" v. 1.0.1.1 is loaded by WordPress automatically on each request
140 characters long description:
The utimative tool for Authors. Must have plugin for all powerfull blogs with Authors. This powerfull Author Box has more than a Pro plugin.

Code Analysis 97% from 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
Success! There were no dangerous files found in this plugin4,607 lines of code in 37 files:
LanguageFilesBlank linesComment linesLines of code
PHP233606462,426
PO File28641,6621,011
SVG100685
JavaScript667159480
CSS5035

PHP code 50% from 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
  • Method cyclomatic complexity should be reduced to less than 100 (currently 122)
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity26.50
▷ Minimum class complexity2.00
▷ Maximum class complexity137.00
Average method complexity5.55
▷ Minimum method complexity1.00
▷ Maximum method complexity122.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes220.00%
▷ Concrete classes880.00%
▷ Final classes00.00%
Methods56
▷ Static methods610.71%
▷ Public methods5089.29%
▷ Protected methods47.14%
▷ Private methods23.57%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants675.00%
▷ Class constants225.00%
▷ Public constants2100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
14 PNG files occupy 3.20MB with 1.87MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/other/googleplus.png8.06KB3.65KB▼ 54.74%
screenshot-1.png585.97KB185.30KB▼ 68.38%
img/other/twitter.png4.30KB2.89KB▼ 32.80%
img/other/sss.png314.70KB99.54KB▼ 68.37%
img/other/author-box.png585.97KB185.30KB▼ 68.38%