Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼4.07ms] Passed 4 tests
A check of server-side resources used by Remove Links and Scripts
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 33.23 ▼12.61 |
Dashboard /wp-admin | 3.34 ▲0.04 | 46.28 ▼5.24 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 50.31 ▲2.40 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 93.97 ▼0.78 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.09 ▲2.35 |
Settings /wp-admin/admin.php?page=remove-links-scripts-settings | 3.27 | 31.68 |
About /wp-admin/admin.php?page=remove-links-scripts-about-plugins | 3.25 | 29.01 |
Server storage [IO: ▲0.96MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Remove Links and Scripts: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲81 | 13.32 ▼0.94 | 4.24 ▲1.80 | 41.15 ▼3.24 |
Dashboard /wp-admin | 2,236 ▲45 | 5.79 ▼0.11 | 96.56 ▼7.14 | 40.77 ▼6.08 |
Posts /wp-admin/edit.php | 2,119 ▲30 | 1.99 ▲0.02 | 39.64 ▲4.45 | 38.78 ▼2.30 |
Add New Post /wp-admin/post-new.php | 1,564 ▲50 | 18.28 ▲0.76 | 630.91 ▼60.43 | 48.83 ▼3.77 |
Media Library /wp-admin/upload.php | 1,418 ▲30 | 4.24 ▲0.05 | 95.32 ▼14.76 | 41.17 ▼7.96 |
Settings /wp-admin/admin.php?page=remove-links-scripts-settings | 910 | 2.06 | 24.44 | 22.22 |
About /wp-admin/admin.php?page=remove-links-scripts-about-plugins | 2,475 | 1.95 | 26.02 | 44.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 10 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=remove-links-scripts-settings
- > Notice in wp-content/plugins/remove-links-and-scripts/admin/class-remove-links-scripts-settings.php+113
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/remove-links-and-scripts/remove-links-scripts.php
- > /wp-content/plugins/remove-links-and-scripts/remove-links-scripts-main.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
- Screenshots: Please a description for screenshot #1 in remove-links-and-scripts/assets to your readme.txt
remove-links-and-scripts/remove-links-scripts.php 92% from 13 tests
The primary PHP file in "Remove Links and Scripts" version 0.2.4 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("remove-links-and-scripts.php" instead of "remove-links-scripts.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin8,799 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 9 | 1 | 1 | 8,119 |
PHP | 7 | 79 | 96 | 452 |
CSS | 4 | 2 | 0 | 228 |
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 code | 0.27 |
Average class complexity | 9.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 3.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 84.62% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 15.38% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
2 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/prevent-xss-vulnerability.png | 7.36KB | 7.25KB | ▼ 1.51% |
admin/images/media-post-permalink.png | 24.03KB | 11.56KB | ▼ 51.92% |