84% statsfc-next-fixture

Code Review | StatsFC Next Fixture

WordPress plugin StatsFC Next Fixture scored84%from 54 tests.

About plugin

  • Plugin page: statsfc-next-fixture
  • Plugin version: 3.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-6.2.2
  • WordPress version: 6.3.1
  • First release: Jun 21, 2013
  • Latest release: Jun 22, 2023
  • Number of updates: 67
  • Update frequency: every 54.5 days
  • Top authors: willjw (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /4,210 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

Server-side resources used by StatsFC Next Fixture
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0540.59 ▼0.04
Dashboard /wp-admin3.35 ▲0.0543.45 ▼3.56
Posts /wp-admin/edit.php3.40 ▲0.0444.89 ▼5.29
Add New Post /wp-admin/post-new.php5.93 ▲0.0483.74 ▼14.68
Media Library /wp-admin/upload.php3.28 ▲0.0436.26 ▲3.25

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

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

Browser metrics Passed 4 tests

A check of browser resources used by StatsFC Next Fixture
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.31 ▼1.284.26 ▲1.9047.39 ▲5.08
Dashboard /wp-admin2,209 ▲244.86 ▼0.02100.64 ▲0.7539.47 ▼7.94
Posts /wp-admin/edit.php2,089 ▼32.05 ▲0.0434.31 ▼9.5334.12 ▼5.69
Add New Post /wp-admin/post-new.php1,533 ▼123.35 ▲2.32615.64 ▼53.0555.17 ▼8.40
Media Library /wp-admin/upload.php1,388 ▼04.21 ▲0.0497.52 ▼11.2041.30 ▼3.88

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_statsfc_nextfixture
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 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-next-fixture/statsfc-next-fixture.php:36

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Donate link: Please fix this invalid URI: ""
The official readme.txt might help

statsfc-next-fixture/statsfc-next-fixture.php Passed 13 tests

"StatsFC Next Fixture" version 3.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
20 characters long description:
StatsFC Next Fixture

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
Everything looks great! No dangerous files found in this plugin397 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP13956180
JavaScript1355172
CSS19045

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity23.00
▷ Minimum class complexity23.00
▷ Maximum class complexity23.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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected