10% ciusan-simple-statistics

Code Review | Ciusan Simple Statistics

WordPress plugin Ciusan Simple Statistics scored10%from 54 tests.

About plugin

  • Plugin page: ciusan-simple-sta...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.1
  • WordPress version: 6.3.1
  • First release: Feb 11, 2015
  • Latest release: Feb 21, 2015
  • Number of updates: 4
  • Update frequency: every 5.0 days
  • Top authors: k0z3y (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,006 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/ciusan-simple-statistics/ciusan-simple-statistics.php+88
    Function create_function() is deprecated

Server metrics [RAM: ▼1.93MB] [CPU: ▼52.15ms] Passed 4 tests

Server-side resources used by Ciusan Simple Statistics
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.404.23 ▼35.49
Dashboard /wp-admin2.08 ▼1.227.61 ▼39.85
Posts /wp-admin/edit.php2.08 ▼1.276.52 ▼38.84
Add New Post /wp-admin/post-new.php2.08 ▼3.815.37 ▼94.41
Media Library /wp-admin/upload.php2.08 ▼1.156.04 ▼27.82

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_ciusan_simple_statistics

Browser metrics Passed 4 tests

A check of browser resources used by Ciusan Simple Statistics
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.15 ▼1.271.54 ▼0.4242.48 ▼5.26
Dashboard /wp-admin2,203 ▲155.77 ▲0.8899.30 ▼6.7441.55 ▼2.58
Posts /wp-admin/edit.php2,089 ▼01.98 ▼0.0342.62 ▲5.9135.19 ▼4.28
Add New Post /wp-admin/post-new.php1,514 ▼1917.70 ▼5.40630.38 ▼57.7950.35 ▼7.64
Media Library /wp-admin/upload.php1,388 ▼04.20 ▲0.0293.89 ▼9.5041.72 ▼5.14

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/ciusan-simple-statistics/ciusan-simple-statistics.php+88
    Function create_function() is deprecated
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_ciusan_simple_statistics
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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
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/ciusan-simple-statistics/ciusan-simple-statistics.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Screenshots: These screenshots require images: #1 (Widget on Sidebar.), #2 (Using shortcode on post.), #3 (Widget sidebar option.)
  • Tags: There are too many tags (15 tag instead of maximum 10)
You can look at the official readme.txt

ciusan-simple-statistics/ciusan-simple-statistics.php Passed 13 tests

The main PHP script in "Ciusan Simple Statistics" version 1.0 is automatically included on every request by WordPress
22 characters long description:
Show simple statistics

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
There were no executable files found in this plugin75 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2122875

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.02
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
3 PNG files occupy 0.07MB with 0.06MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png17.59KB2.59KB▼ 85.26%
screenshot-1.png23.38KB5.04KB▼ 78.43%
screenshot-2.png32.55KB9.65KB▼ 70.36%