Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼144.30ms] Passed 4 tests
An overview of server-side resources used by ShowMB
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.04 | 34.38 ▼5.04 |
Dashboard /wp-admin | 3.09 ▲0.03 | 44.17 ▼4.51 |
Posts /wp-admin/edit.php | 3.14 ▲0.03 | 42.50 ▼5.55 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 91.18 ▼562.09 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 36.13 ▲1.84 |
Server storage [IO: ▲1.31MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 85 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_smb_widget |
Browser metrics Passed 4 tests
Checking browser requirements for ShowMB
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,812 ▲240 | 16.25 ▲0.34 | 13.55 ▲2.43 | 49.70 ▲3.15 |
Dashboard /wp-admin | 2,970 ▲34 | 5.85 ▼0.12 | 153.88 ▼0.77 | 112.32 ▼7.28 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.70 ▲0.00 | 68.00 ▼0.40 | 84.77 ▼2.74 |
Add New Post /wp-admin/post-new.php | 1,672 ▼11 | 18.88 ▲0.14 | 402.43 ▲25.24 | 111.73 ▲9.60 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.05 ▲0.02 | 172.17 ▼12.98 | 114.44 ▼8.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin does not fully uninstall, leaving 1 option in the database
- widget_smb_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/showmb/includes/widget.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/showmb/smb.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Tags: Too many tags (20 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: Add descriptions for screenshots #2, #4, #6, #8, #9 in showmb/assets to your readme.txt
showmb/smb.php 92% from 13 tests
This is the main PHP file of "ShowMB" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("showmb.php" instead of "smb.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
There were no executable files found in this plugin9,313 lines of code in 55 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 2 | 0 | 0 | 2,685 |
CSS | 3 | 21 | 17 | 2,453 |
Sass | 14 | 34 | 34 | 1,768 |
LESS | 14 | 34 | 44 | 1,758 |
PO File | 19 | 95 | 133 | 466 |
JavaScript | 1 | 27 | 8 | 114 |
PHP | 2 | 29 | 12 | 69 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin