90% remove-all-scripts

Code Review | Remove All Scripts

WordPress plugin Remove All Scripts scored90%from 54 tests.

About plugin

  • Plugin page: remove-all-scripts
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-3.5.1
  • WordPress version: 6.3.1
  • First release: Mar 8, 2013
  • Latest release: Mar 8, 2013
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: prometh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /766 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

An overview of server-side resources used by Remove All Scripts
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.35 ▼0.1138.46 ▼5.54
Dashboard /wp-admin3.31 ▼0.0450.18 ▼13.57
Posts /wp-admin/edit.php3.36 ▲0.0048.21 ▼4.38
Add New Post /wp-admin/post-new.php5.89 ▲0.0096.35 ▼6.32
Media Library /wp-admin/upload.php3.23 ▲0.0039.62 ▲0.67

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Remove All Scripts
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲5014.48 ▲0.091.43 ▼0.5540.75 ▼6.22
Dashboard /wp-admin2,209 ▲184.86 ▼0.02107.58 ▼4.3844.11 ▼0.72
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0239.75 ▼1.5134.32 ▼3.56
Add New Post /wp-admin/post-new.php1,533 ▲323.20 ▲5.04622.39 ▼42.6251.75 ▲2.79
Media Library /wp-admin/upload.php1,391 ▲34.21 ▲0.00100.33 ▼3.5441.62 ▼8.10

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: plugin, optimization, optimize, scripts

remove-all-scripts/remove-all-scripts.php Passed 13 tests

The entry point to "Remove All Scripts" version 0.1 is a PHP file that has certain tags in its header comment area
76 characters long description:
Remove all enqueued scripts from every post/page/etc on your WordPress site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected19 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP181019

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin