90% first-graders-toolbox

Code Review | 1 click disable all

WordPress plugin 1 click disable all scored90%from 54 tests.

About plugin

  • Plugin page: first-graders-too...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.3.1
  • WordPress version: 6.3.1
  • First release: Oct 10, 2023
  • Latest release: Oct 10, 2023
  • Number of updates: 7
  • Update frequency: every 0.1 days
  • Top authors: atakanau (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /22 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: ▼6.21ms] Passed 4 tests

Server-side resources used by 1 click disable all
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.99 ▼6.15
Dashboard /wp-admin3.32 ▲0.0150.61 ▼9.55
Posts /wp-admin/edit.php3.37 ▲0.0149.87 ▲2.78
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.34 ▼11.91
Media Library /wp-admin/upload.php3.24 ▲0.0146.91 ▲5.25
Disable all plugins /wp-admin/tools.php?page=one-click-disable-all-action3.1934.76

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

1 click disable all: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.42 ▲0.041.80 ▼0.2844.66 ▼1.70
Dashboard /wp-admin2,213 ▲254.87 ▼0.08103.62 ▼15.3438.77 ▼6.67
Posts /wp-admin/edit.php2,090 ▲12.04 ▲0.0336.51 ▲0.6633.05 ▼4.32
Add New Post /wp-admin/post-new.php1,536 ▲323.13 ▲0.04669.87 ▼5.5453.62 ▼3.00
Media Library /wp-admin/upload.php1,389 ▼24.43 ▲0.30112.50 ▲8.4147.65 ▲3.61
Disable all plugins /wp-admin/tools.php?page=one-click-disable-all-action1,9562.7433.9035.67

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Congratulations! This plugin passed the SRP 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

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: tool, access, admin, remote, disable

first-graders-toolbox/first-graders-toolbox.php 92% from 13 tests

The main file in "1 click disable all" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

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
No dangerous file extensions were detected41 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2101841

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.12
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected