84% cleaner-plugin-installer

Code Review | Cleaner Plugin Installer

WordPress plugin Cleaner Plugin Installer scored84%from 54 tests.

About plugin

  • Plugin page: cleaner-plugin-in...
  • Plugin version: 1.4.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.1
  • WordPress version: 6.3.1
  • First release: Oct 8, 2014
  • Latest release: Feb 22, 2019
  • Number of updates: 32
  • Update frequency: every 49.9 days
  • Top authors: daveshine (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

200+ active /13,525 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.88ms] Passed 4 tests

This is a short check of server-side resources used by Cleaner Plugin Installer
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.48 ▼1.24
Dashboard /wp-admin3.35 ▲0.0546.97 ▼1.42
Posts /wp-admin/edit.php3.40 ▲0.0444.51 ▼4.81
Add New Post /wp-admin/post-new.php5.93 ▲0.0484.71 ▼20.05
Media Library /wp-admin/upload.php3.27 ▲0.0434.54 ▲2.71

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Cleaner Plugin Installer
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲9214.80 ▲0.502.08 ▲0.2743.39 ▼1.15
Dashboard /wp-admin2,219 ▲344.85 ▼0.06114.21 ▼1.8843.31 ▼1.26
Posts /wp-admin/edit.php2,089 ▼02.05 ▼0.0137.63 ▼1.1333.20 ▼2.52
Add New Post /wp-admin/post-new.php1,533 ▲1923.27 ▲5.82655.29 ▼10.8166.72 ▲13.48
Media Library /wp-admin/upload.php1,388 ▲64.27 ▲0.0396.24 ▼3.4239.70 ▼4.18

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • 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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 9× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/cleaner-plugin-installer/cleaner-plugin-installer.php
    • > /wp-content/plugins/cleaner-plugin-installer/includes/cpi-functions-dashboard.php
    • > /wp-content/plugins/cleaner-plugin-installer/includes/cpi-admin-extras.php
    • > /wp-content/plugins/cleaner-plugin-installer/includes/cpi-plugin-uploader.php
    • > /wp-content/plugins/cleaner-plugin-installer/includes/cpi-functions.php
    • > /wp-content/plugins/cleaner-plugin-installer/includes/cpi-functions-tab-topics.php
    • > /wp-content/plugins/cleaner-plugin-installer/includes/cpi-functions-screen-options.php
    • > /wp-content/plugins/cleaner-plugin-installer/includes/cpi-plugin-installer.php
    • > /wp-content/plugins/cleaner-plugin-installer/includes/cpi-functions-de.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% 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
9 plugin tags: deckerweb, efficient, cleaner, plugins, installer...

cleaner-plugin-installer/cleaner-plugin-installer.php 92% from 13 tests

"Cleaner Plugin Installer" version 1.4.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 154 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected3,247 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP116271,0411,845
PO File2260278707
CSS422080667
JavaScript463528

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Functions74
▷ Named functions74100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
No PNG images were found in this plugin