84% statsfc-top-scorers

Code Review | StatsFC Top Scorers

WordPress plugin StatsFC Top Scorers scored 84% from 54 tests.

About plugin

  • Plugin page: statsfc-top-scorers
  • Plugin version: 3.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-6.2.2
  • WordPress version: 6.3.1
  • First release: Mar 16, 2013
  • Latest release: Jun 22, 2023
  • Number of updates: 70
  • Update frequency: every 53.6 days
  • Top authors: willjw (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active / 4,311 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
The plugin installed gracefully, with no errors

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

A check of server-side resources used by StatsFC Top Scorers
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.93 ▼1.05
Dashboard /wp-admin3.32 ▲0.0146.36 ▼1.28
Posts /wp-admin/edit.php3.37 ▲0.0145.55 ▲1.57
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.23 ▼13.82
Media Library /wp-admin/upload.php3.24 ▲0.0134.76 ▲0.74

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments
widget_statsfc_topscorers
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for StatsFC Top Scorers
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.16 ▼1.421.75 ▼0.0844.30 ▲3.06
Dashboard /wp-admin2,203 ▲125.85 ▲0.94100.49 ▼2.8735.70 ▼5.48
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0534.01 ▼3.7334.95 ▲3.14
Add New Post /wp-admin/post-new.php1,514 ▼1917.66 ▼5.61678.84 ▲3.3949.64 ▼14.34
Media Library /wp-admin/upload.php1,391 ▼04.18 ▲0.0097.52 ▼6.0241.86 ▼4.16

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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: 7 options
    • can_compress_scripts
    • widget_statsfc_topscorers
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • 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 no errors were found, this is by no means an exhaustive test

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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/statsfc-top-scorers/statsfc-top-scorers.php:35

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Donate link: Invalid URI found ("")
You can take inspiration from this readme.txt

statsfc-top-scorers/statsfc-top-scorers.php Passed 13 tests

The entry point to "StatsFC Top Scorers" version 3.0.1 is a PHP file that has certain tags in its header comment area
19 characters long description:
StatsFC Top Scorers

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
No dangerous file extensions were detected424 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP13756206
JavaScript1445174
CSS17044

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity26.00
▷ Minimum class complexity26.00
▷ Maximum class complexity26.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity4.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

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin