84% appa-world-rankings-display-plugin

Code Review | APPA World Rankings Display Plugin

WordPress plugin APPA World Rankings Display Plugin scored84%from 54 tests.

About plugin

  • Plugin page: appa-world-rankin...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.5.1
  • WordPress version: 6.3.1
  • First release: Sep 20, 2013
  • Latest release: Sep 20, 2013
  • Number of updates: 3
  • Update frequency: every 1.3 days
  • Top authors: jmrieger (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /790 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

A check of server-side resources used by APPA World Rankings Display Plugin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.25 ▼2.72
Dashboard /wp-admin3.31 ▲0.0047.92 ▼10.18
Posts /wp-admin/edit.php3.36 ▲0.0044.05 ▼4.77
Add New Post /wp-admin/post-new.php5.89 ▲0.0098.80 ▲0.02
Media Library /wp-admin/upload.php3.23 ▲0.0036.79 ▼0.49

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by APPA World Rankings Display Plugin
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.72 ▲0.321.54 ▼0.1239.64 ▼2.14
Dashboard /wp-admin2,198 ▲215.57 ▼0.0495.22 ▼7.1043.80 ▼2.82
Posts /wp-admin/edit.php2,103 ▲212.11 ▲0.1141.20 ▲0.4334.60 ▼3.19
Add New Post /wp-admin/post-new.php1,526 ▼023.26 ▼0.28637.33 ▼44.4864.50 ▲11.83
Media Library /wp-admin/upload.php1,397 ▼34.19 ▼0.01100.32 ▼6.5043.92 ▼2.54

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/appa-world-rankings-display-plugin/appa-world-rankings.php:53

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: appa, paintball

appa-world-rankings-display-plugin/appa-world-rankings.php 92% from 13 tests

The primary PHP file in "APPA World Rankings Display Plugin" version 1.0.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("appa-world-rankings-display-plugin.php" instead of "appa-world-rankings.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin24 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1102124

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.67
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin