84% seriously-simple-stats

Code Review | Seriously Simple Stats

WordPress plugin Seriously Simple Stats scored84%from 54 tests.

About plugin

  • Plugin page: seriously-simple-...
  • Plugin version: 1.5.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.2
  • WordPress version: 6.3.1
  • First release: Nov 16, 2015
  • Latest release: Jun 16, 2023
  • Number of updates: 42
  • Update frequency: every 66.0 days
  • Top authors: psykro (54.76%)zahardoc (28.57%)hlashbrooke (21.43%)

Code review

54 tests

User reviews

10 reviews

Install metrics

6,000+ active /91,872 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼5.63ms] Passed 4 tests

Server-side resources used by Seriously Simple Stats
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0644.44 ▲3.22
Dashboard /wp-admin3.36 ▲0.0246.89 ▼18.67
Posts /wp-admin/edit.php3.48 ▲0.1250.71 ▲2.91
Add New Post /wp-admin/post-new.php5.95 ▲0.0686.24 ▼3.53
Media Library /wp-admin/upload.php3.29 ▲0.0635.44 ▼3.24

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Seriously Simple Stats
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲1714.61 ▲0.261.74 ▼0.6744.64 ▼5.41
Dashboard /wp-admin2,195 ▲155.48 ▼0.1583.75 ▼3.6637.25 ▼3.15
Posts /wp-admin/edit.php2,100 ▼31.97 ▼0.0537.99 ▼0.9937.15 ▲1.68
Add New Post /wp-admin/post-new.php1,527 ▲123.03 ▼0.14666.66 ▼11.7564.47 ▲7.40
Media Library /wp-admin/upload.php1,391 ▼124.18 ▲0.0297.37 ▼8.6242.67 ▲0.02

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'Jaybizzle\\CrawlerDetect\\Fixtures\\AbstractProvider' not found in wp-content/plugins/seriously-simple-stats/vendor/jaybizzle/crawler-detect/src/Fixtures/Exclusions.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Jaybizzle\\CrawlerDetect\\Fixtures\\AbstractProvider' not found in wp-content/plugins/seriously-simple-stats/vendor/jaybizzle/crawler-detect/src/Fixtures/Crawlers.php:14
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/seriously-simple-stats/partials/stats-all-episodes-pagination.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Jaybizzle\\CrawlerDetect\\Fixtures\\AbstractProvider' not found in wp-content/plugins/seriously-simple-stats/vendor/jaybizzle/crawler-detect/src/Fixtures/Headers.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/seriously-simple-stats/partials/stats-all-episodes.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% 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:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
The official readme.txt might help

seriously-simple-stats/seriously-simple-stats.php 92% from 13 tests

The primary PHP file in "Seriously Simple Stats" version 1.5.2 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected3,904 lines of code in 39 files:
LanguageFilesBlank linesComment linesLines of code
PHP275351,0713,465
LESS140206
JSON50093
YAML215062
Markdown121055
JavaScript25022
CSS1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity22.14
▷ Minimum class complexity1.00
▷ Maximum class complexity125.00
Average method complexity4.05
▷ Minimum method complexity1.00
▷ Maximum method complexity35.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes14
▷ Abstract classes17.14%
▷ Concrete classes1392.86%
▷ Final classes00.00%
Methods98
▷ Static methods2222.45%
▷ Public methods8485.71%
▷ Protected methods11.02%
▷ Private methods1313.27%
Functions6
▷ Named functions583.33%
▷ Anonymous functions116.67%
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
There were not PNG files found in your plugin