84% authors-autocomplete-meta-box

Code Review | Authors Autocomplete Meta Box

WordPress plugin Authors Autocomplete Meta Box scored84%from 54 tests.

About plugin

  • Plugin page: authors-autocompl...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.6
  • WordPress version: 6.3.1
  • First release: May 23, 2013
  • Latest release: Dec 2, 2013
  • Number of updates: 41
  • Update frequency: every 4.7 days
  • Top authors: bamadesigner (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active /3,988 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.07MB] [CPU: ▼13.98ms] Passed 4 tests

An overview of server-side resources used by Authors Autocomplete Meta Box
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0541.98 ▼0.42
Dashboard /wp-admin3.40 ▲0.0146.30 ▼17.61
Posts /wp-admin/edit.php3.51 ▲0.1244.50 ▼9.54
Add New Post /wp-admin/post-new.php5.54 ▼0.3982.57 ▼28.33
Media Library /wp-admin/upload.php3.32 ▲0.0537.63 ▼0.32

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Authors Autocomplete Meta Box
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.27 ▼0.091.73 ▲0.0943.95 ▲1.42
Dashboard /wp-admin2,189 ▲95.52 ▼0.0590.69 ▲0.3439.23 ▼0.33
Posts /wp-admin/edit.php2,100 ▲31.95 ▼0.0536.18 ▼0.1133.73 ▼5.31
Add New Post /wp-admin/post-new.php6,275 ▲4,74926.24 ▲3.10940.58 ▲261.5941.55 ▼19.44
Media Library /wp-admin/upload.php1,400 ▼04.15 ▲0.05100.10 ▼12.3540.36 ▼8.99

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% 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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/authors-autocomplete-meta-box/authors-autocomplete-meta-box.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
The official readme.txt is a good inspiration

authors-autocomplete-meta-box/authors-autocomplete-meta-box.php 92% from 13 tests

The entry point to "Authors Autocomplete Meta Box" version 1.2 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 147 characters long)

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
Success! There were no dangerous files found in this plugin399 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP178118173
JavaScript16346142
CSS16047
PO File191237

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code1.28
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected