10% rated90-player-rankings

Code Review | Rated90 Player Rankings

WordPress plugin Rated90 Player Rankings scored10%from 54 tests.

About plugin

  • Plugin page: rated90-player-ra...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6.0-3.4.2
  • WordPress version: 6.3.1
  • First release: Sep 28, 2012
  • Latest release: Sep 28, 2012
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: brethash (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /964 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/rated90-player-rankings/r90playerwidget.php+356
    Function create_function() is deprecated

Server metrics [RAM: ▼1.85MB] [CPU: ▼52.88ms] Passed 4 tests

Analyzing server-side resources used by Rated90 Player Rankings
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.15 ▼1.324.65 ▼32.68
Dashboard /wp-admin2.17 ▼1.185.38 ▼52.77
Posts /wp-admin/edit.php2.17 ▼1.196.52 ▼40.66
Add New Post /wp-admin/post-new.php2.17 ▼3.725.52 ▼85.40
Media Library /wp-admin/upload.php2.17 ▼1.064.77 ▼25.70
Rated90 Players /wp-admin/options-general.php?page=rated90_player_rankings2.175.38

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 9 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
rated90_player_rankings_powered
widget_recent-posts
rated90_player_rankings_links
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_rated90_player_rankings

Browser metrics Passed 4 tests

Rated90 Player Rankings: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,799 ▲3814.17 ▼0.421.66 ▲0.02105.47 ▲63.38
Dashboard /wp-admin2,199 ▲255.52 ▼0.0583.43 ▼6.6038.03 ▼0.71
Posts /wp-admin/edit.php2,086 ▼141.98 ▼0.0135.37 ▲0.2033.54 ▼2.75
Add New Post /wp-admin/post-new.php1,529 ▲322.99 ▼0.58590.86 ▼40.4757.71 ▼0.15
Media Library /wp-admin/upload.php1,398 ▲14.22 ▲0.0295.53 ▼2.4744.65 ▲2.68
Rated90 Players /wp-admin/options-general.php?page=rated90_player_rankings7842.0026.3931.01

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/rated90-player-rankings/r90playerwidget.php+356
    Function create_function() is deprecated
  • This plugin did not uninstall successfully, leaving 9 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • rated90_player_rankings_powered
    • widget_rated90_player_rankings
    • widget_recent-comments
    • rated90_player_rankings_links
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=rated90_player_rankings
    • > Deprecated in wp-content/plugins/rated90-player-rankings/r90playerwidget.php+356
    Function create_function() is deprecated

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/rated90-player-rankings/r90playerwidget.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% 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 require attention:
  • Screenshots: Please add images for these screenshots: #1 (Example of the widget in a narrow sidebar.), #2 (Example of the widget in a full page sidebar. It scales!)
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
Please take inspiration from this readme.txt

rated90-player-rankings/r90playerwidget.php 92% from 13 tests

The main PHP script in "Rated90 Player Rankings" version 1.0 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("rated90-player-rankings.php" instead of "r90playerwidget.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected396 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12914330
CSS10166

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity22.00
▷ Minimum class complexity22.00
▷ Maximum class complexity22.00
Average method complexity6.25
▷ Minimum method complexity1.00
▷ Maximum method complexity12.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%
Functions3
▷ Named functions3100.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
7 compressed PNG files occupy 0.05MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/rated90.widget.thead.png0.16KB0.15KB▼ 1.86%
images/rated90.widget.num.bg.png0.60KB0.84KB0.00%
images/rated90.logo.png9.52KB4.60KB▼ 51.68%
images/rated90.widget.footer.png0.14KB0.15KB0.00%
images/rated90.widget.slice.png0.15KB0.29KB0.00%