84% statsfc-player-rater

Code Review | StatsFC Player Rater

WordPress plugin StatsFC Player Rater scored84%from 54 tests.

About plugin

  • Plugin page: statsfc-player-rater
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-6.2.2
  • WordPress version: 6.3.1
  • First release: Apr 15, 2014
  • Latest release: Jun 22, 2023
  • Number of updates: 58
  • Update frequency: every 57.9 days
  • Top authors: willjw (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /2,769 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼1.45ms] Passed 4 tests

Analyzing server-side resources used by StatsFC Player Rater
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0537.84 ▼4.04
Dashboard /wp-admin3.36 ▲0.0546.25 ▼7.24
Posts /wp-admin/edit.php3.41 ▲0.0550.24 ▲5.03
Add New Post /wp-admin/post-new.php5.94 ▲0.0595.12 ▲9.96
Media Library /wp-admin/upload.php3.28 ▲0.0534.87 ▲0.45

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for StatsFC Player Rater
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲5414.42 ▼0.231.96 ▼0.0140.94 ▼3.65
Dashboard /wp-admin2,206 ▲185.89 ▼0.17106.69 ▼13.5542.55 ▼4.14
Posts /wp-admin/edit.php2,089 ▼01.97 ▼0.0439.34 ▲3.1235.06 ▲3.15
Add New Post /wp-admin/post-new.php1,536 ▲2223.29 ▲5.75625.94 ▼88.9652.82 ▼3.23
Media Library /wp-admin/upload.php1,388 ▼04.20 ▼0.0197.76 ▼12.8440.73 ▼8.11

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_statsfc_playerrater
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 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/statsfc-player-rater/statsfc-player-rater.php:35

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 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Donate link: Please fix this invalid URI: ""
  • Tags: There are too many tags (11 tag instead of maximum 10)
You can look at the official readme.txt

statsfc-player-rater/statsfc-player-rater.php Passed 13 tests

The primary PHP file in "StatsFC Player Rater" version 2.0.1 is used by WordPress to initiate all plugin functionality
20 characters long description:
StatsFC Player Rater

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
Everything looks great! No dangerous files found in this plugin582 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1769299
PHP13756185
CSS120098

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity26.00
▷ Minimum class complexity26.00
▷ Maximum class complexity26.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods120.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants3
▷ Global constants3100.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
There were not PNG files found in your plugin