84% statsfc-top-assisters

Code Review | StatsFC Top Assisters

WordPress plugin StatsFC Top Assisters scored84%from 54 tests.

About plugin

  • Plugin page: statsfc-top-assis...
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-6.2.2
  • WordPress version: 6.3.1
  • First release: Sep 23, 2018
  • Latest release: Jun 22, 2023
  • Number of updates: 9
  • Update frequency: every 193.7 days
  • Top authors: willjw (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /826 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼8.71ms] Passed 4 tests

This is a short check of server-side resources used by StatsFC Top Assisters
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0541.79 ▼1.62
Dashboard /wp-admin3.36 ▲0.0148.61 ▼16.94
Posts /wp-admin/edit.php3.41 ▲0.0549.23 ▼3.57
Add New Post /wp-admin/post-new.php5.94 ▲0.0585.75 ▼12.71
Media Library /wp-admin/upload.php3.28 ▲0.0538.34 ▲0.41

Server storage [IO: ▲0.02MB] [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
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_statsfc_topassisters
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for StatsFC Top Assisters
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6814.31 ▼0.041.98 ▲0.0740.94 ▼4.17
Dashboard /wp-admin2,192 ▲155.61 ▲0.0890.32 ▼4.4036.37 ▼4.67
Posts /wp-admin/edit.php2,100 ▼01.98 ▼0.0139.69 ▲4.7135.42 ▲0.43
Add New Post /wp-admin/post-new.php1,526 ▼023.05 ▲0.03634.85 ▼75.9747.70 ▼15.99
Media Library /wp-admin/upload.php1,400 ▼04.22 ▲0.0898.05 ▼14.3645.74 ▼1.25

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_statsfc_topassisters

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/statsfc-top-assisters/statsfc-top-assisters.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Donate link: Invalid url: ""
You can look at the official readme.txt

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

The main PHP script in "StatsFC Top Assisters" version 2.0.1 is automatically included on every request by WordPress
21 characters long description:
StatsFC Top Assisters

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected424 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP13733206
JavaScript1445174
CSS17044

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
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

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin