Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼4.20ms] Passed 4 tests
An overview of server-side resources used by PageSwapper
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 37.30 ▼2.34 |
Dashboard /wp-admin | 3.33 ▲0.02 | 45.93 ▼4.91 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 48.38 ▲0.64 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 82.70 ▼7.64 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 33.99 ▼1.89 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 51 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for PageSwapper
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,253 ▲518 | 14.64 ▲0.25 | 25.44 ▲23.76 | 47.36 ▲5.67 |
Dashboard /wp-admin | 2,226 ▲38 | 4.90 ▼0.98 | 107.96 ▲6.93 | 37.00 ▼8.97 |
Posts /wp-admin/edit.php | 2,109 ▲23 | 2.02 ▲0.05 | 38.81 ▼2.36 | 35.08 ▼1.93 |
Add New Post /wp-admin/post-new.php | 1,538 ▲19 | 23.46 ▲0.25 | 625.81 ▼57.01 | 58.51 ▼9.66 |
Media Library /wp-admin/upload.php | 1,405 ▲17 | 4.29 ▲0.10 | 99.36 ▲5.01 | 43.99 ▼1.36 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 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
Please take a closer look at the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/page-swapper/admin/partials/page-swapper-admin-display.php
- > /wp-content/plugins/page-swapper/public/partials/page-swapper-public-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== page-swapper ===
)
page-swapper/page-swapper.php Passed 13 tests
"PageSwapper" version 1.2.8's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
27 characters long description:
Swap pages with transitions
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
There were no executable files found in this plugin1,525 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 225 | 707 | 687 |
JavaScript | 8 | 122 | 238 | 471 |
CSS | 8 | 22 | 50 | 281 |
PO File | 1 | 13 | 0 | 47 |
JSON | 3 | 0 | 0 | 39 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 7.36 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 2.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 50 | |
▷ Static methods | 5 | 10.00% |
▷ Public methods | 44 | 88.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 12.00% |
Functions | 6 | |
▷ Named functions | 4 | 66.67% |
▷ Anonymous functions | 2 | 33.33% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
build/css/grabbing.png | 0.11KB | 0.14KB | 0.00% |