Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼8.52ms] Passed 4 tests
Server-side resources used by Kneejerk Menu Swapper
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 34.21 ▼6.81 |
Dashboard /wp-admin | 3.33 ▲0.03 | 44.16 ▼6.82 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 47.32 ▼1.28 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 82.23 ▼19.15 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.14 ▲3.07 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Kneejerk Menu Swapper
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲80 | 13.29 ▼0.96 | 1.60 ▼0.35 | 40.52 ▼10.36 |
Dashboard /wp-admin | 2,221 ▲30 | 4.93 ▼0.96 | 110.08 ▲3.58 | 82.87 ▲39.44 |
Posts /wp-admin/edit.php | 2,110 ▲21 | 1.97 ▼0.02 | 39.24 ▼1.24 | 33.84 ▼2.95 |
Add New Post /wp-admin/post-new.php | 1,527 ▼6 | 17.52 ▼5.73 | 672.85 ▼0.63 | 49.87 ▼0.42 |
Media Library /wp-admin/upload.php | 1,406 ▲15 | 4.24 ▲0.02 | 98.84 ▼1.82 | 78.16 ▲36.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% 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)
Good news, no errors were detected
SRP 0% 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
Please fix the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/kneejerk-menu-swapper/templates/config.php
- > /wp-content/plugins/kneejerk-menu-swapper/templates/about.php
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Use of undefined constant KJD_MENU_SWAPPER_URI - assumed 'KJD_MENU_SWAPPER_URI' (this will throw an Error in a future version of PHP) in wp-content/plugins/kneejerk-menu-swapper/templates/about.php on line 38
- > PHP Warning
Use of undefined constant KJD_MENU_SWAPPER_URI - assumed 'KJD_MENU_SWAPPER_URI' (this will throw an Error in a future version of PHP) in wp-content/plugins/kneejerk-menu-swapper/templates/about.php on line 46
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/kneejerk-menu-swapper/templates/admin-menu.php:16
- > PHP Warning
Use of undefined constant KJD_MENU_SWAPPER_URI - assumed 'KJD_MENU_SWAPPER_URI' (this will throw an Error in a future version of PHP) in wp-content/plugins/kneejerk-menu-swapper/templates/about.php on line 42
- > PHP Warning
Use of undefined constant KJD_MENU_SWAPPER_URI - assumed 'KJD_MENU_SWAPPER_URI' (this will throw an Error in a future version of PHP) in wp-content/plugins/kneejerk-menu-swapper/templates/about.php on line 33
- > PHP Fatal error
Uncaught Error: Call to undefined function Kneejerk\\MenuSwapper\\plugin_dir_url() in wp-content/plugins/kneejerk-menu-swapper/index.php:18
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% 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 your attention:
- Donate link: Invalid url: "coming soon?"
kneejerk-menu-swapper/index.php 92% from 13 tests
The principal PHP file in "Kneejerk Menu Swapper" v. 1.1.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("kneejerk-menu-swapper.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin381 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 35 | 41 | 329 |
Markdown | 1 | 16 | 0 | 32 |
SVG | 1 | 0 | 0 | 20 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 2.20 |
▷ Minimum method complexity | 2.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
6 PNG files occupy 0.12MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/twenty_twenty_save.png | 2.35KB | 1.22KB | ▼ 47.94% |
images/color_logo.png | 82.99KB | 34.14KB | ▼ 58.86% |
images/twenty_twenty_menu_select.png | 4.38KB | 2.09KB | ▼ 52.28% |
images/wp_logo.png | 1.22KB | 0.74KB | ▼ 39.63% |
images/twenty_twenty_configure_enable.png | 14.81KB | 6.82KB | ▼ 53.98% |