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.05MB] [CPU: ▼5.01ms] Passed 4 tests
Analyzing server-side resources used by ATR advanced menu
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 39.49 ▼1.84 |
Dashboard /wp-admin | 3.36 ▲0.06 | 49.65 ▲0.17 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 53.57 ▲3.44 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 82.01 ▼19.83 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 33.09 ▲1.48 |
Atr Advanced Menu Options /wp-admin/themes.php?page=atr_advanced_menu | 3.27 | 34.98 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 39 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
atr_advanced_menu_display_options |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for ATR advanced menu
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,970 ▲235 | 14.89 ▲0.49 | 2.07 ▲0.06 | 43.92 ▼6.74 |
Dashboard /wp-admin | 2,351 ▲166 | 6.50 ▲0.62 | 144.53 ▲44.28 | 41.72 ▼3.51 |
Posts /wp-admin/edit.php | 2,254 ▲165 | 3.42 ▲1.40 | 49.57 ▲11.07 | 30.87 ▼5.97 |
Add New Post /wp-admin/post-new.php | 1,521 ▼13 | 17.66 ▼5.48 | 612.18 ▲6.83 | 35.17 ▼31.44 |
Media Library /wp-admin/upload.php | 1,390 ▲8 | 4.28 ▲0.11 | 86.81 ▼11.01 | 41.11 ▼4.22 |
Atr Advanced Menu Options /wp-admin/themes.php?page=atr_advanced_menu | 1,078 | 3.18 | 38.06 | 27.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- atr_advanced_menu_display_options
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
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)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/atr-advanced-menu/public/partials/atr-am-public-display.php
- > /wp-content/plugins/atr-advanced-menu/admin/partials/atr-am-admin-display.php
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'Walker_Nav_Menu' not found in wp-content/plugins/atr-advanced-menu/admin/walkers-edit/class-atr-am-walker-edit.php:11
- > PHP Fatal error
Uncaught Error: Class 'Walker_Nav_Menu' not found in wp-content/plugins/atr-advanced-menu/includes/walkers/class-atr-am-walker.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 86% 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:
- Screenshots: Screenshot #3 (Description of third screenshot named screenshot-3) image missing
atr-advanced-menu/atr-am.php 77% from 13 tests
This is the main PHP file of "ATR advanced menu" version 1.0.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 242 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("atr-advanced-menu.php" instead of "atr-am.php")
- Requires at least: The required version number must match the one declared in readme.txt ("3.9" instead of "2.6.4")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin3,255 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 187 | 776 | 1,510 |
PHP | 18 | 331 | 983 | 1,095 |
CSS | 5 | 92 | 92 | 496 |
PO File | 1 | 45 | 70 | 154 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 11.08 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 3.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 41.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 54 | |
▷ Static methods | 3 | 5.56% |
▷ Public methods | 48 | 88.89% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 11.11% |
Functions | 5 | |
▷ Named functions | 5 | 100.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/walkers-edit/img/189-tree_1.png | 0.18KB | 0.16KB | ▼ 13.44% |
admin/walkers-edit/img/189-tree.png | 0.27KB | 0.19KB | ▼ 31.54% |
admin/walkers-edit/img/dialog_warning.png | 1.23KB | 1.25KB | 0.00% |