Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.30MB] [CPU: ▼133.18ms] Passed 4 tests
Analyzing server-side resources used by GT Push Menu Lite
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.10 ▲0.38 | 47.78 ▲24.41 |
Dashboard /wp-admin | 3.39 ▲0.34 | 50.31 ▲9.37 |
Posts /wp-admin/edit.php | 3.44 ▲0.33 | 45.53 ▲1.39 |
Add New Post /wp-admin/post-new.php | 5.70 ▲0.27 | 97.53 ▼539.46 |
Media Library /wp-admin/upload.php | 3.27 ▲0.26 | 36.00 ▼4.03 |
Server storage [IO: ▲2.13MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 96 new files
Database: no new tables, 1 new option
New WordPress options |
---|
gtpm_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for GT Push Menu Lite
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,697 ▲101 | 15.99 ▲0.15 | 11.58 ▲0.25 | 75.35 ▲28.34 |
Dashboard /wp-admin | 2,987 ▲53 | 6.25 ▲0.31 | 152.54 ▲6.27 | 121.63 ▲3.25 |
Posts /wp-admin/edit.php | 2,753 ▲14 | 2.74 ▲0.04 | 70.98 ▲2.64 | 97.27 ▲4.79 |
Add New Post /wp-admin/post-new.php | 1,626 ▲128 | 21.60 ▲2.72 | 277.34 ▼102.81 | 109.77 ▲3.01 |
Media Library /wp-admin/upload.php | 1,819 ▲9 | 5.11 ▲0.11 | 159.96 ▲6.50 | 121.31 ▼3.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
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)
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/gt-push-menu-lite/views/_header.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/gt-push-menu-lite/views/_header.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/gt-push-menu-lite/gt-push-menu.php:39
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gt-push-menu-lite/core.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Screenshots: These screenshots do not have images: #1 (Mailbox.), #2 (Template editor.), #3 (Subscriber management.)
gt-push-menu-lite/gt-push-menu.php 92% from 13 tests
The primary PHP file in "GT Push Menu Lite" version 1.2.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("gt-push-menu-lite.php" instead of "gt-push-menu.php")
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
Success! There were no dangerous files found in this plugin23,408 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 12 | 1,284 | 167 | 10,688 |
JavaScript | 15 | 2,416 | 1,586 | 10,647 |
PHP | 9 | 389 | 593 | 1,383 |
SVG | 2 | 0 | 0 | 386 |
HTML | 1 | 46 | 9 | 244 |
Markdown | 1 | 46 | 0 | 60 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 47.00 |
▷ Minimum class complexity | 22.00 |
▷ Maximum class complexity | 107.00 |
Average method complexity | 3.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 63.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 97 | |
▷ Static methods | 15 | 15.46% |
▷ Public methods | 84 | 86.60% |
▷ Protected methods | 2 | 2.06% |
▷ Private methods | 11 | 11.34% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 20 | |
▷ Global constants | 11 | 55.00% |
▷ Class constants | 9 | 45.00% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
44 compressed PNG files occupy 0.63MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/colorpicker/colorpicker_rgb_g.png | 1.04KB | 0.83KB | ▼ 20.21% |
img/colorpicker/custom_submit.png | 0.97KB | 0.99KB | 0.00% |
img/colorpicker/colorpicker_overlay.png | 10.11KB | 8.24KB | ▼ 18.50% |
docs/assets/img/glyphicons/glyphicons_009_magic.png | 0.31KB | 0.32KB | 0.00% |
img/colorpicker/colorpicker_hsb_s.png | 1.14KB | 0.80KB | ▼ 29.97% |