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.00MB] [CPU: ▼2.73ms] Passed 4 tests
An overview of server-side resources used by Switch Pages
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.76 ▲0.02 | 42.25 ▼1.72 |
Dashboard /wp-admin | 3.58 ▲0.02 | 50.73 ▼2.84 |
Posts /wp-admin/edit.php | 3.70 ▲0.02 | 54.92 ▲2.69 |
Add New Post /wp-admin/post-new.php | 6.11 ▼0.03 | 91.75 ▼9.06 |
Media Library /wp-admin/upload.php | 3.51 ▲0.02 | 45.49 ▲7.33 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
switch_pages_version |
widget_recent-posts |
Browser metrics Passed 4 tests
Switch Pages: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.27 ▼0.10 | 1.83 ▲0.01 | 44.31 ▼2.22 |
Dashboard /wp-admin | 2,195 ▲15 | 5.65 ▼0.04 | 91.95 ▼7.93 | 41.07 ▼5.34 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.06 ▲0.02 | 41.44 ▲3.62 | 35.11 ▲1.01 |
Add New Post /wp-admin/post-new.php | 1,691 ▲137 | 22.23 ▼0.86 | 664.35 ▼50.41 | 59.36 ▲8.02 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.19 ▼0.06 | 115.56 ▲10.64 | 48.18 ▲2.56 |
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
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 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)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/switch-pages/switch-pages.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 ([Gutenberg] Choose the page/post you want to navigate to from the dropdown), #2 ([Classic Editor] Choose the page/post you want to navigate to from the dropdown)
switch-pages/switch-pages.php 92% from 13 tests
The entry point to "Switch Pages" version 2.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 290 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin169 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 11 | 5 | 85 |
PHP | 2 | 41 | 44 | 84 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.12MB with 0.06MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 63.26KB | 30.08KB | ▼ 52.46% |
screenshot-1.png | 56.96KB | 28.98KB | ▼ 49.12% |