90% meks-quick-plugin-disabler

Code Review | Meks Quick Plugin Disabler

WordPress plugin Meks Quick Plugin Disabler scored 90% from 54 tests.

About plugin

  • Plugin page: meks-quick-plugin...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-6.3
  • WordPress version: 6.3.1
  • First release: Jan 3, 2017
  • Latest release: Sep 11, 2023
  • Number of updates: 20
  • Update frequency: every 122.0 days
  • Top authors: mekshq (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

2,000+ active / 12,810 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

Analyzing server-side resources used by Meks Quick Plugin Disabler
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.32 ▼4.65
Dashboard /wp-admin3.31 ▲0.0143.91 ▼9.42
Posts /wp-admin/edit.php3.36 ▲0.0148.81 ▼1.12
Add New Post /wp-admin/post-new.php5.89 ▲0.0184.36 ▼19.21
Media Library /wp-admin/upload.php3.24 ▲0.0133.93 ▼2.99

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Meks Quick Plugin Disabler
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.22 ▼1.361.59 ▼0.4538.44 ▼8.67
Dashboard /wp-admin2,203 ▲155.83 ▲0.93108.37 ▲2.7341.46 ▼3.47
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0343.67 ▲7.3336.26 ▲3.61
Add New Post /wp-admin/post-new.php1,533 ▼023.14 ▼0.11638.26 ▼41.7559.60 ▼6.66
Media Library /wp-admin/upload.php1,391 ▼04.17 ▼0.0496.24 ▼21.5843.68 ▼1.73

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
9 plugin tags: check, activate, backup, disable, deactivate...

meks-quick-plugin-disabler/meks-quick-plugin-disabler.php 92% from 13 tests

Analyzing the main PHP file in "Meks Quick Plugin Disabler" version 1.0
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 235 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin90 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1404168
PO File14422

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.57
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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 are no PNG files in this plugin