84% mini-statistics

Code Review | Mini Statistics

WordPress plugin Mini Statistics scored 84% from 54 tests.

About plugin

  • Plugin page: mini-statistics
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.3.1
  • WordPress version: 6.3.1
  • First release: Nov 20, 2014
  • Latest release: Oct 9, 2015
  • Number of updates: 11
  • Update frequency: every 29.5 days
  • Top authors: iosoft (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

90+ active / 4,808 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.28ms] Passed 4 tests

Server-side resources used by Mini Statistics
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.42 ▼7.56
Dashboard /wp-admin3.32 ▲0.0147.62 ▲0.59
Posts /wp-admin/edit.php3.37 ▲0.0146.61 ▲1.80
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.48 ▼11.95
Media Library /wp-admin/upload.php3.24 ▲0.0137.23 ▲3.29
Comments Statistics /wp-admin/edit-comments.php?page=comments-ministat3.2134.60
All Comments /wp-admin/edit-comments.php3.2537.70
Comments Statistics /wp-admin/admin.php?page=comments-ministat3.2134.50
Users Statistics /wp-admin/admin.php?page=users-ministat3.2133.25
Statistics /wp-admin/admin.php?page=ministatistics3.2030.71
Users Statistics /wp-admin/users.php?page=users-ministat3.2133.43

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Mini Statistics: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,852 ▲10613.23 ▼1.451.68 ▼0.0142.91 ▼4.44
Dashboard /wp-admin2,255 ▲675.87 ▲0.95110.84 ▼2.5443.78 ▼5.91
Posts /wp-admin/edit.php2,138 ▲492.03 ▲0.0439.73 ▲3.0037.32 ▲2.70
Add New Post /wp-admin/post-new.php1,428 ▼10016.71 ▼1.80534.22 ▼109.4250.39 ▼13.03
Media Library /wp-admin/upload.php1,431 ▲434.22 ▼0.0194.68 ▼15.0341.64 ▼5.54
Comments Statistics /wp-admin/edit-comments.php?page=comments-ministat9444.3642.6536.48
All Comments /wp-admin/edit-comments.php1,8412.2737.2833.66
Comments Statistics /wp-admin/admin.php?page=comments-ministat9474.3842.0634.42
Users Statistics /wp-admin/admin.php?page=users-ministat9484.4837.1634.38
Statistics /wp-admin/admin.php?page=ministatistics8812.0629.9130.24
Users Statistics /wp-admin/users.php?page=users-ministat9514.5244.2736.63

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
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/mini-statistics/mini-statistics.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: comments, admin, users, statistics

mini-statistics/mini-statistics.php Passed 13 tests

"Mini Statistics" version 1.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
96 characters long description:
This plugin is a small and simple Users Statistics and Comments Statistics plugin for WordPress.

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 detected299 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP26828299

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin