84% wp-comcleaner

Code Review | WP ComCleaner

WordPress plugin WP ComCleaner scored84%from 54 tests.

About plugin

  • Plugin page: wp-comcleaner
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.1-3.8
  • WordPress version: 6.3.1
  • First release: Oct 14, 2012
  • Latest release: Dec 17, 2013
  • Number of updates: 9
  • Update frequency: every 47.7 days
  • Top authors: takuword (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /994 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.46ms] Passed 4 tests

This is a short check of server-side resources used by WP ComCleaner
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.42 ▼0.35
Dashboard /wp-admin3.31 ▲0.0148.31 ▼3.77
Posts /wp-admin/edit.php3.36 ▲0.0047.57 ▼7.57
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.55 ▼5.44
Media Library /wp-admin/upload.php3.23 ▲0.0037.14 ▼1.06

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by WP ComCleaner
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲4613.17 ▼1.271.67 ▼0.1347.21 ▲1.24
Dashboard /wp-admin2,206 ▲214.84 ▼0.04110.47 ▼3.3442.26 ▼5.38
Posts /wp-admin/edit.php2,089 ▲32.02 ▼0.1235.09 ▼0.3432.51 ▲0.43
Add New Post /wp-admin/post-new.php1,533 ▲1923.24 ▲5.55601.91 ▼63.2750.64 ▲1.58
Media Library /wp-admin/upload.php1,385 ▼64.29 ▲0.1096.87 ▼5.7441.51 ▼2.21

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

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
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function remove_action() in wp-content/plugins/wp-comcleaner/headclean.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-comcleaner/nopingback.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-comcleaner/nopingback.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-comcleaner/nomorelink.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

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:
  • Screenshots: Please add an image for screenshot #1 (/screenshot.jpg)
Please take inspiration from this readme.txt

wp-comcleaner/wp-comcleaner.php Passed 13 tests

The principal PHP file in "WP ComCleaner" v. 1.2 is loaded by WordPress automatically on each request
126 characters long description:
サイトの表示時、無駄な空白や記号を省きます。あと、他のプラグインも少し持ってきてます

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin33 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP40833

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 are no PNG files in this plugin