Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼0.02ms] Passed 4 tests
A check of server-side resources used by Altra Side Menu
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 39.20 ▼3.52 |
Dashboard /wp-admin | 3.43 ▲0.13 | 46.17 ▼1.14 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 50.87 ▲2.57 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 95.04 ▲3.65 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 36.81 ▲1.99 |
Options /wp-admin/admin.php?page=altra_menu_icon_option | 3.32 | 31.38 |
Manage Menu /wp-admin/admin.php?page=altra_menu_icon_page | 3.32 | 32.19 |
Add Menu /wp-admin/admin.php?page=altra_menu_icon_add | 3.35 | 36.35 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 18 new files
Database: 1 new table, 24 new options
New tables |
---|
wp_altra_side_menu |
New WordPress options |
---|
altra-font-weight |
can_compress_scripts |
altra-keep-data |
altra-border-size |
altra-width |
altra-image-width |
altra-border-color |
altra-height |
widget_recent-posts |
altra-menu-bet-box |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Altra Side Menu
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,950 ▲215 | 14.31 ▼0.06 | 6.16 ▲4.19 | 37.95 ▼1.38 |
Dashboard /wp-admin | 2,237 ▲49 | 5.90 ▼0.19 | 97.10 ▼11.81 | 72.57 ▲28.45 |
Posts /wp-admin/edit.php | 2,127 ▲35 | 2.07 ▼0.10 | 38.01 ▼1.11 | 33.89 ▼1.23 |
Add New Post /wp-admin/post-new.php | 1,546 ▲24 | 23.35 ▲0.03 | 760.26 ▲124.60 | 36.33 ▼23.45 |
Media Library /wp-admin/upload.php | 1,416 ▲31 | 4.21 ▼0.02 | 102.33 ▲0.46 | 76.68 ▲31.56 |
Options /wp-admin/admin.php?page=altra_menu_icon_option | 1,090 | 1.93 | 25.18 | 27.24 |
Manage Menu /wp-admin/admin.php?page=altra_menu_icon_page | 1,140 | 2.10 | 36.96 | 30.05 |
Add Menu /wp-admin/admin.php?page=altra_menu_icon_add | 1,074 | 3.10 | 37.26 | 81.86 |
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 24 options in the database
- altra-font-size
- altra-margin
- altra-menu-bet-box
- altra-width
- altra-border-size
- db_upgraded
- altra-bg-color
- altra-image-width
- widget_recent-comments
- widget_theysaidso_widget
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/altra-side-menu/altra-side-menu.php
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=altra_menu_icon_option
- > Javascript (severe) in unknown
/wp-admin/admin.php?page=altra_menu_icon_option 147:1 Uncaught TypeError: $ is not a function
- > GET request to /wp-admin/admin.php?page=altra_menu_icon_page
- > Javascript (severe) in unknown
/wp-admin/admin.php?page=altra_menu_icon_page 331:5 Uncaught TypeError: $ is not a function
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: social icon, side menu, icon menu, social media icons, social icons
altra-side-menu/altra-side-menu.php 92% from 13 tests
The main file in "Altra Side Menu" v. 2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 308 characters long)
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
Success! There were no dangerous files found in this plugin971 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 70 | 14 | 736 |
CSS | 2 | 11 | 2 | 210 |
JavaScript | 1 | 3 | 5 | 25 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
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 | 14 | |
▷ Named functions | 14 | 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
PNG files should be compressed to save space and minimize bandwidth usage
8 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/edit.png | 4.75KB | 2.60KB | ▼ 45.31% |
images/img2.png | 3.78KB | 2.34KB | ▼ 38.04% |
images/img3.png | 3.21KB | 2.07KB | ▼ 35.46% |
images/settings.png | 1.46KB | 1.44KB | ▼ 1.21% |
images/delete.png | 3.35KB | 2.22KB | ▼ 33.61% |