84% rankriskindex

Code Review | RankRiskIndex

WordPress plugin RankRiskIndex scored84%from 54 tests.

About plugin

  • Plugin page: rankriskindex
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.7
  • WordPress version: 6.3.1
  • First release: Dec 15, 2013
  • Latest release: Dec 12, 2016
  • Number of updates: 11
  • Update frequency: every 99.4 days
  • Top authors: besthostnews (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,091 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
Install script ran successfully

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

An overview of server-side resources used by RankRiskIndex
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.29 ▼5.38
Dashboard /wp-admin3.32 ▼0.0251.74 ▼14.48
Posts /wp-admin/edit.php3.37 ▲0.0252.72 ▲0.91
Add New Post /wp-admin/post-new.php5.90 ▲0.0294.58 ▼12.29
Media Library /wp-admin/upload.php3.25 ▲0.0231.94 ▼4.76

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_rankrisk_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for RankRiskIndex
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,169 ▲42315.86 ▲2.651.59 ▼3.2935.33 ▼6.04
Dashboard /wp-admin2,585 ▲4077.43 ▲1.77157.35 ▲38.8263.98 ▲22.27
Posts /wp-admin/edit.php2,100 ▼32.02 ▲0.0440.45 ▼0.4037.80 ▲0.55
Add New Post /wp-admin/post-new.php1,526 ▼923.00 ▲4.84590.47 ▼79.6655.50 ▼17.51
Media Library /wp-admin/upload.php1,394 ▼64.22 ▲0.0696.30 ▼6.6844.32 ▲0.75

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_rankrisk_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rankriskindex/rankriskindex.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (The dashboard widget.) image required
The official readme.txt is a good inspiration

rankriskindex/rankriskindex.php Passed 13 tests

This is the main PHP file of "RankRiskIndex" version 1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
41 characters long description:
Display latest Risk Index from RankRanger

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin56 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1163156

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected