84% statsfc-table

Code Review | StatsFC Table

WordPress plugin StatsFC Table scored84%from 54 tests.

About plugin

  • Plugin page: statsfc-table
  • Plugin version: 2.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-6.2.2
  • WordPress version: 6.3.1
  • First release: Mar 12, 2013
  • Latest release: Jun 22, 2023
  • Number of updates: 99
  • Update frequency: every 37.9 days
  • Top authors: willjw (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /10,594 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.06MB] [CPU: ▼7.76ms] Passed 4 tests

Server-side resources used by StatsFC Table
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0640.17 ▲1.11
Dashboard /wp-admin3.36 ▲0.0650.52 ▼1.75
Posts /wp-admin/edit.php3.41 ▲0.0647.54 ▼7.93
Add New Post /wp-admin/post-new.php5.94 ▲0.0684.56 ▼22.48
Media Library /wp-admin/upload.php3.29 ▲0.0637.69 ▲1.27

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_statsfc_table

Browser metrics Passed 4 tests

Checking browser requirements for StatsFC Table
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.23 ▼1.071.78 ▼0.0945.02 ▲4.51
Dashboard /wp-admin2,206 ▲185.81 ▲0.79108.16 ▲6.0737.13 ▼6.30
Posts /wp-admin/edit.php2,092 ▼02.06 ▲0.0350.49 ▲8.4541.83 ▲2.51
Add New Post /wp-admin/post-new.php1,533 ▼023.11 ▼0.22689.35 ▲22.2154.20 ▼6.14
Media Library /wp-admin/upload.php1,391 ▲64.26 ▲0.0799.03 ▼7.2246.16 ▲1.58

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_statsfc_table

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/statsfc-table/statsfc-table.php:35

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)
No browser errors were detected

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
Please fix the following attributes:
  • Donate link: Invalid URI found ("")
Please take inspiration from this readme.txt

statsfc-table/statsfc-table.php Passed 13 tests

The primary PHP file in "StatsFC Table" version 2.2.1 is used by WordPress to initiate all plugin functionality
20 characters long description:
StatsFC League Table

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected612 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1605281
PHP13756238
CSS117093

PHP code Passed 2 tests

A brief analysis 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.29
Average class complexity35.00
▷ Minimum class complexity35.00
▷ Maximum class complexity35.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity8.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
No PNG files were detected