78% cleanerpress

Code Review | CleanerPress

WordPress plugin CleanerPress scored78%from 54 tests.

About plugin

  • Plugin page: cleanerpress
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5
  • WordPress version: 6.3.1
  • First release: Jun 17, 2012
  • Latest release: Aug 6, 2013
  • Number of updates: 20
  • Update frequency: every 20.8 days
  • Top authors: Arevico (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

20+ active /7,454 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.09MB] [CPU: ▼6.00ms] Passed 4 tests

Analyzing server-side resources used by CleanerPress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0542.45 ▼0.35
Dashboard /wp-admin3.46 ▲0.0854.37 ▼12.08
Posts /wp-admin/edit.php3.57 ▲0.1854.32 ▲10.18
Add New Post /wp-admin/post-new.php6.05 ▲0.1397.29 ▼9.12
Media Library /wp-admin/upload.php3.38 ▲0.1239.09 ▼2.45
General Settings /wp-admin/admin.php?page=cleaner-press-options-settings3.3546.86
CleanerPress /wp-admin/admin.php?page=cleaner-press-options3.3531.77

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: no files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for CleanerPress
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲8113.33 ▼0.971.75 ▲0.0144.61 ▼0.23
Dashboard /wp-admin2,236 ▲514.85 ▼1.01111.03 ▲0.8843.26 ▼3.19
Posts /wp-admin/edit.php2,116 ▲272.18 ▲0.1840.27 ▲2.7935.02 ▲0.44
Add New Post /wp-admin/post-new.php6,228 ▲4,56019.02 ▼3.27886.50 ▲234.3760.14 ▲11.97
Media Library /wp-admin/upload.php1,415 ▲304.19 ▲0.0194.92 ▼10.1342.87 ▼3.20
General Settings /wp-admin/admin.php?page=cleaner-press-options-settings1,0772.0928.4227.77
CleanerPress /wp-admin/admin.php?page=cleaner-press-options8062.0223.6426.07

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/cleanerpress/ntc.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/cleanerpress/cleanerpress-professional-3.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Option screen 1), #2 (Option screen 2)
The official readme.txt might help

cleanerpress/cleanerpress-professional-3.php 92% from 13 tests

This is the main PHP file of "CleanerPress" version 2.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("cleanerpress.php" instead of "cleanerpress-professional-3.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin1,290 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP818977596
JavaScript5206109485
CSS2275209

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.60
Average class complexity18.88
▷ Minimum class complexity1.00
▷ Maximum class complexity43.00
Average method complexity6.11
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods28
▷ Static methods00.00%
▷ Public methods2796.43%
▷ Protected methods00.00%
▷ Private methods13.57%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants00.00%
▷ Class constants5100.00%
▷ Public constants5100.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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/cross.png3.31KB0.83KB▼ 74.76%
admin/tick.png3.29KB0.70KB▼ 78.70%