Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Warning in wp-content/plugins/dropdown-smu-style/DropdownLinks_Plugin.php+32
count(): Parameter must be an array or an object that implements Countable
Server metrics [RAM: ▲0.04MB] [CPU: ▼141.14ms] Passed 4 tests
A check of server-side resources used by Dropdown SMU Link
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.15 | 33.63 ▲9.51 |
Dashboard /wp-admin | 3.08 ▲0.03 | 44.40 ▲1.94 |
Posts /wp-admin/edit.php | 3.20 ▲0.09 | 44.33 ▲1.10 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.02 | 89.81 ▼564.47 |
Media Library /wp-admin/upload.php | 3.03 ▲0.02 | 34.51 ▼3.11 |
Server storage [IO: ▲5.45MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 1,531 new files
Database: no new tables, 5 new options
New WordPress options |
---|
DropdownLinks_Plugin_ATextInput |
DropdownLinks_Plugin_AmAwesome |
DropdownLinks_Plugin__version |
DropdownLinks_Plugin_CanDoSomething |
DropdownLinks_Plugin__installed |
Browser metrics Passed 4 tests
A check of browser resources used by Dropdown SMU Link
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲71 | 16.12 ▲0.11 | 11.35 ▲1.37 | 46.62 ▼1.48 |
Dashboard /wp-admin | 2,979 ▲45 | 5.94 ▼0.02 | 129.79 ▼12.55 | 134.86 ▲30.42 |
Posts /wp-admin/edit.php | 2,759 ▲20 | 2.60 ▼0.23 | 60.70 ▼7.69 | 93.85 ▲2.93 |
Add New Post /wp-admin/post-new.php | 1,513 ▼363 | 18.60 ▼0.44 | 372.52 ▲2.56 | 105.65 ▼4.19 |
Media Library /wp-admin/upload.php | 1,767 ▼37 | 4.99 ▼0.01 | 130.80 ▼17.73 | 151.58 ▲19.28 |
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
- Zombie WordPress options detected upon uninstall: 5 options
- DropdownLinks_Plugin__version
- DropdownLinks_Plugin_CanDoSomething
- DropdownLinks_Plugin_AmAwesome
- DropdownLinks_Plugin__installed
- DropdownLinks_Plugin_ATextInput
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
Good news, no errors were detected
SRP 50% 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
Almost there! Just fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dropdown-smu-style/dropdown-links.php:77
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Requires at least: Invalid version format
dropdown-smu-style/dropdown-links.php 77% from 13 tests
"Dropdown SMU Link" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Description: The description should be shorter than 140 characters (currently 382 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("dropdown-smu-style.php" instead of "dropdown-links.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin20,178 lines of code in 1,511 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1,486 | 0 | 12 | 11,903 |
CSS | 15 | 3,410 | 11 | 7,593 |
PHP | 8 | 216 | 459 | 651 |
JavaScript | 2 | 6 | 3 | 31 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 10.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 1.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 2 | 33.33% |
▷ Concrete classes | 4 | 66.67% |
▷ Final classes | 0 | 0.00% |
Methods | 77 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 49 | 63.64% |
▷ Protected methods | 28 | 36.36% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/dashlogo.png | 47.61KB | 13.42KB | ▼ 71.80% |
images/smuicon.png | 0.66KB | 0.57KB | ▼ 13.46% |