89% cleanup-wp

Code Review | CleanUp WP

WordPress plugin CleanUp WP scored89%from 54 tests.

About plugin

  • Plugin page: cleanup-wp
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9
  • WordPress version: 6.3.1
  • First release: Jan 20, 2017
  • Latest release: May 14, 2018
  • Number of updates: 16
  • Update frequency: every 29.8 days
  • Top authors: Kuckovic (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,027 total downloads

Benchmarks

Plugin footprint 82% 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.00MB] [CPU: ▲3.67ms] Passed 4 tests

This is a short check of server-side resources used by CleanUp WP
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.45 ▼0.0233.15 ▼15.66
Dashboard /wp-admin3.31 ▲0.0158.91 ▲14.66
Posts /wp-admin/edit.php3.35 ▼0.0157.36 ▲9.41
Add New Post /wp-admin/post-new.php5.94 ▲0.0598.47 ▲6.26
Media Library /wp-admin/upload.php3.28 ▲0.0557.14 ▲23.10

Server storage [IO: ▲0.01MB] [DB: ▼0.00MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
Just a few items left to fix
  • There were 342 files (0.00KB) illegally modified outside of "wp-content/plugins/cleanup-wp/" and "wp-content/uploads/"
    • (deleted) wp-content/themes/twentynineteen/fonts/NonBreakingSpaceOverride.woff2
    • (deleted) wp-content/themes/twentynineteen/classes/class-twentynineteen-walker-comment.php
    • (deleted) wp-content/themes/twentynineteen/functions.php
    • (deleted) wp-content/themes/twentynineteen/archive.php
    • (deleted) wp-content/themes/twentynineteen/footer.php
    • (deleted) wp-content/themes/twentynineteen/classes/class-twentynineteen-svg-icons.php
    • (deleted) wp-content/themes/twentynineteen/comments.php
    • (deleted) wp-content/themes/twentynineteen/404.php
    • (deleted) wp-content/plugins/hello.php
    • (deleted) wp-content/themes/twentynineteen/fonts/NonBreakingSpaceOverride.woff
    • ...
Filesystem: 2 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
widget_recent-posts
cleared_widgets
db_upgraded
widget_recent-comments
category_children
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for CleanUp WP
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,251 ▼49514.76 ▲0.181.63 ▼0.7920.63 ▼25.15
Dashboard /wp-admin1,728 ▼4605.55 ▲0.6495.32 ▼21.7138.03 ▼7.83
Posts /wp-admin/edit.php1,239 ▼8502.01 ▲0.0233.12 ▼1.3833.47 ▲0.32
Add New Post /wp-admin/post-new.php1,536 ▲2222.66 ▲4.81611.99 ▼26.8661.73 ▲7.82
Media Library /wp-admin/upload.php1,397 ▲94.26 ▲0.0995.62 ▼2.4442.45 ▲1.08

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
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • category_children
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • cleared_widgets
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 93% from 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
10 plugin tags: robots, simple, permalinks, remove, menu...

cleanup-wp/cleanupwp.php 85% from 13 tests

Analyzing the main PHP file in "CleanUp WP" version 1.3
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("cleanup-wp.php" instead of "cleanupwp.php")
  • Description: The description should be shorter than 140 characters (currently 214 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected93 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1724393

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions11
▷ Named functions11100.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
There were not PNG files found in your plugin