84% rp-cleaner

Code Review | RP Cleaner

WordPress plugin RP Cleaner scored84%from 54 tests.

About plugin

  • Plugin page: rp-cleaner
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.2
  • WordPress version: 6.3.1
  • First release: Jul 28, 2015
  • Latest release: Jul 29, 2015
  • Number of updates: 8
  • Update frequency: every 0.3 days
  • Top authors: rohitpoonia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /613 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

An overview of server-side resources used by RP Cleaner
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0239.95 ▼9.45
Dashboard /wp-admin3.25 ▼0.1035.71 ▼30.73
Posts /wp-admin/edit.php3.38 ▲0.0246.28 ▼1.01
Add New Post /wp-admin/post-new.php5.91 ▲0.0285.54 ▼21.45
Media Library /wp-admin/upload.php3.25 ▲0.0236.88 ▲1.95

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for RP Cleaner
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,052 ▼69413.87 ▼0.421.79 ▲0.1443.88 ▼1.43
Dashboard /wp-admin1,463 ▼7145.12 ▼0.4673.23 ▼27.5537.17 ▼8.13
Posts /wp-admin/edit.php2,103 ▲32.01 ▲0.0135.04 ▼1.2233.15 ▼2.74
Add New Post /wp-admin/post-new.php1,526 ▼323.67 ▲0.31692.74 ▲40.0155.03 ▲4.78
Media Library /wp-admin/upload.php1,400 ▼04.31 ▲0.1099.66 ▼11.0645.86 ▼2.99

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rp-cleaner/rp-cleaner.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: rp, cleanup, dashboard, welcome text, rpcleaner

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

Analyzing the main PHP file in "RP Cleaner" version 1.0
96 characters long description:
RP cleaner will remove all of the deafult widget comes with the fresh installation of wordpress.

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
There were no executable files found in this plugin80 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1261180

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.27
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

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin