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.08MB] [CPU: ▼5.44ms] Passed 4 tests
An overview of server-side resources used by Disable Unused Pages
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.09 | 40.02 ▲0.89 |
Dashboard /wp-admin | 3.38 ▲0.08 | 45.98 ▼7.12 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 47.50 ▲1.88 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 83.72 ▼16.87 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 34.47 ▲1.33 |
Disable pages /wp-admin/options-general.php?page=disable-unused-features | 3.27 | 31.93 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Disable Unused Pages: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲49 | 13.35 ▼1.04 | 2.03 ▼0.07 | 43.63 ▼4.43 |
Dashboard /wp-admin | 2,206 ▲18 | 5.80 ▲0.91 | 98.83 ▼10.43 | 40.73 ▼4.18 |
Posts /wp-admin/edit.php | 2,092 ▲21 | 2.01 ▼0.05 | 37.02 ▲0.41 | 35.33 ▲2.33 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.27 ▲5.63 | 680.19 ▲68.48 | 57.01 ▲12.03 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.18 ▼0.07 | 97.91 ▼1.66 | 41.89 ▼1.97 |
Disable pages /wp-admin/options-general.php?page=disable-unused-features | 892 | 2.03 | 22.49 | 24.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/disable-unused-features/disable-unused-features.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: tag archives, author archives, category archives, disable pages, date archives
disable-unused-features/disable-unused-features.php Passed 13 tests
The primary PHP file in "Disable Unused Pages" version 1.2 is used by WordPress to initiate all plugin functionality
134 characters long description:
Redirect to 404: Author archives, Date archives, Attachment page, Category archives, Tag archives or Search page. Easy, safe and fast!
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin341 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 53 | 12 | 207 |
CSS | 1 | 28 | 2 | 134 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.78 |
Average class complexity | 79.00 |
▷ Minimum class complexity | 79.00 |
▷ Maximum class complexity | 79.00 |
Average method complexity | 5.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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