84% wp-author-status

Code Review | WP Author Status

WordPress plugin WP Author Status scored 84% from 54 tests.

About plugin

  • Plugin page: wp-author-status
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.9.1
  • WordPress version: 6.3.1
  • First release: Jun 17, 2014
  • Latest release: Sep 6, 2020
  • Number of updates: 5
  • Update frequency: every 454.6 days
  • Top authors: moviehour (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 979 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼0.70ms] Passed 4 tests

Server-side resources used by WP Author Status
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.34 ▼0.99
Dashboard /wp-admin3.31 ▲0.0150.85 ▲3.88
Posts /wp-admin/edit.php3.36 ▲0.0048.11 ▲0.07
Add New Post /wp-admin/post-new.php5.89 ▲0.0096.50 ▲7.76
Media Library /wp-admin/upload.php3.23 ▲0.0029.73 ▼5.77

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by WP Author Status
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,856 ▲12114.81 ▲0.521.84 ▲0.0232.44 ▼11.97
Dashboard /wp-admin2,263 ▲784.86 ▼0.9695.77 ▼13.8040.61 ▼2.21
Posts /wp-admin/edit.php2,091 ▼11.99 ▼0.0535.48 ▼4.6431.86 ▼5.67
Add New Post /wp-admin/post-new.php1,530 ▼323.15 ▼0.17610.62 ▼41.2246.06 ▼10.28
Media Library /wp-admin/upload.php1,393 ▲54.20 ▼0.0296.17 ▲1.1041.47 ▲0.04

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • 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
Even though everything seems fine, this is not an exhaustive test

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 is_admin() in wp-content/plugins/wp-author-status/wp-author-status.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 97% 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
These attributes need your attention:
  • Screenshots: Please add an image for screenshot #1 (Author Status.)
The official readme.txt is a good inspiration

wp-author-status/wp-author-status.php Passed 13 tests

The main file in "WP Author Status" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
87 characters long description:
WP Author Status plugin allows authors to easily update their status to WordPress site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin119 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP11320106
CSS20013

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png35.65KB13.19KB▼ 63.00%