84% simple-clean-content

Code Review | Simple clean content

WordPress plugin Simple clean content scored84%from 54 tests.

About plugin

  • Plugin page: simple-clean-content
  • Plugin version: 1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.3
  • WordPress version: 6.3.1
  • First release: Aug 27, 2018
  • Latest release: Nov 11, 2019
  • Number of updates: 15
  • Update frequency: every 29.4 days
  • Top authors: colomet (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,024 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

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

A check of server-side resources used by Simple clean content
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.30 ▼0.02
Dashboard /wp-admin3.31 ▲0.0146.34 ▼1.99
Posts /wp-admin/edit.php3.37 ▲0.0144.85 ▼3.04
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.04 ▼28.40
Media Library /wp-admin/upload.php3.23 ▲0.0136.31 ▲1.53

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Simple clean content
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲6714.79 ▲0.521.64 ▼0.1844.44 ▼0.63
Dashboard /wp-admin2,208 ▲174.77 ▼1.13112.28 ▲12.2443.13 ▲1.22
Posts /wp-admin/edit.php2,088 ▼42.02 ▲0.0032.81 ▼3.6733.97 ▲1.04
Add New Post /wp-admin/post-new.php1,535 ▲723.11 ▲0.25664.99 ▲5.9772.23 ▲17.83
Media Library /wp-admin/upload.php1,390 ▲24.19 ▲0.0194.08 ▼6.6245.07 ▲0.28

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-clean-content/simple-clean-content.php:39

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 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: delete, cleaning, wordpress plugin, tinymce-editor-custom-button, tinymce-editor...

simple-clean-content/simple-clean-content.php 85% from 13 tests

The main PHP script in "Simple clean content" version 1.1 is automatically included on every request by WordPress
It is important to fix the following:
  • Domain Path: The domain path folder was not found ("/languages")
  • Description: Please keep the plugin description shorter than 140 characters (currently 252 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected116 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1191474
PHP2125229
CSS11113

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/clean-text-style-icon.png3.48KB4.16KB0.00%