84% statsfc-fixtures

Code Review | StatsFC Fixtures

WordPress plugin StatsFC Fixtures scored 84% from 54 tests.

About plugin

  • Plugin page: statsfc-fixtures
  • 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 17, 2013
  • Latest release: Jun 22, 2023
  • Number of updates: 80
  • Update frequency: every 46.9 days
  • Top authors: willjw (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

90+ active / 6,851 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.06MB] [CPU: ▼0.49ms] Passed 4 tests

Server-side resources used by StatsFC Fixtures
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0634.66 ▼4.54
Dashboard /wp-admin3.36 ▲0.0643.94 ▼6.87
Posts /wp-admin/edit.php3.41 ▲0.0648.00 ▲2.78
Add New Post /wp-admin/post-new.php5.94 ▲0.0693.75 ▲7.23
Media Library /wp-admin/upload.php3.29 ▲0.0638.73 ▲6.66

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

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

Browser metrics Passed 4 tests

StatsFC Fixtures: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9014.79 ▲0.411.97 ▲0.3041.14 ▼7.36
Dashboard /wp-admin2,206 ▲184.86 ▼1.04108.93 ▲1.8441.93 ▲0.11
Posts /wp-admin/edit.php2,092 ▼02.02 ▼0.1641.06 ▲5.1235.45 ▲2.95
Add New Post /wp-admin/post-new.php1,545 ▲318.54 ▲0.29594.14 ▼55.8249.14 ▼6.01
Media Library /wp-admin/upload.php1,388 ▼34.17 ▼0.0394.87 ▼5.5040.74 ▼1.59

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_statsfc_fixtures
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • 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 short smoke test looking for server-side errors
Good news, no errors were detected

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
Please fix the following
  • 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-fixtures/statsfc-fixtures.php:35

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Donate link: Please fix this invalid URI: ""
The official readme.txt might help

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

The primary PHP file in "StatsFC Fixtures" version 3.0.1 is used by WordPress to initiate all plugin functionality
16 characters long description:
StatsFC Fixtures

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin518 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP13956248
JavaScript1455200
CSS113070

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
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 complexity34.00
▷ Minimum class complexity34.00
▷ Maximum class complexity34.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity7.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
PNG images were not found in this plugin