90% content-cleaner

Code Review | Content Cleaner

WordPress plugin Content Cleaner scored90%from 54 tests.

About plugin

  • Plugin page: content-cleaner
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-4.7.2
  • WordPress version: 6.3.1
  • First release: Feb 15, 2017
  • Latest release: Feb 16, 2017
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: colin3440 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /595 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Content Cleaner
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0142.01 ▲1.57
Dashboard /wp-admin3.33 ▼0.0252.86 ▼11.10
Posts /wp-admin/edit.php3.38 ▲0.0246.10 ▲3.84
Add New Post /wp-admin/post-new.php5.91 ▲0.0287.42 ▼13.26
Media Library /wp-admin/upload.php3.25 ▲0.0235.62 ▼1.73

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Content Cleaner
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.20 ▼1.611.78 ▲0.0743.57 ▼3.78
Dashboard /wp-admin2,203 ▲185.81 ▼0.05101.04 ▼8.6838.02 ▼3.83
Posts /wp-admin/edit.php2,086 ▼32.05 ▲0.0133.62 ▼4.7232.32 ▼4.57
Add New Post /wp-admin/post-new.php1,533 ▼022.98 ▲0.11670.06 ▲19.5057.08 ▲4.72
Media Library /wp-admin/upload.php1,382 ▼94.19 ▲0.0496.27 ▼6.6641.42 ▼0.53

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: sanitize, utf-8, unicode, clean, non-printable characters

content-cleaner/content-cleaner.php Passed 13 tests

The entry point to "Content Cleaner" version 1.0 is a PHP file that has certain tags in its header comment area
95 characters long description:
Remove unwanted characters and junk (like ETX) from your content that doesn't conform to UTF-8.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin50 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2186150

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.17
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods116.67%
▷ Public methods583.33%
▷ Protected methods00.00%
▷ Private methods116.67%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin