Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.18MB] [CPU: ▼5.02ms] Passed 4 tests
A check of server-side resources used by Map Store Locator
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 37.64 ▼7.37 |
Dashboard /wp-admin | 3.49 ▲0.18 | 50.25 ▼4.30 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 52.11 ▼3.24 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 86.89 ▼5.15 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 37.54 ▲2.56 |
Server storage [IO: ▲5.56MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 39 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_msl |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Map Store Locator
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,930 ▲195 | 15.32 ▲0.58 | 33.46 ▲31.62 | 40.63 ▼2.91 |
Dashboard /wp-admin | 2,222 ▲37 | 5.85 ▲0.89 | 105.73 ▼4.33 | 39.22 ▼3.43 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.01 ▼0.01 | 37.01 ▼0.49 | 31.87 ▼6.72 |
Add New Post /wp-admin/post-new.php | 1,546 ▲32 | 23.31 ▲5.64 | 671.44 ▼7.48 | 100.62 ▲34.62 |
Media Library /wp-admin/upload.php | 1,404 ▲16 | 4.22 ▲0.04 | 118.94 ▼4.71 | 42.61 ▼8.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- widget_msl
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/map-store-location/classes/widgets/MslWidget.php:7
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/map-store-location/classes/widgets/MslWidget.php:7
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/map-store-location/classes/widgets/MslWidget.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Tags: Too many tags (17 tag instead of maximum 10); only the first 5 tags are used in your directory listing
map-store-location/msl-plugins.php 85% from 13 tests
The main file in "Map Store Locator" v. 1.2.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Text Domain: The text domain should only use lowercase characters and dashes
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("map-store-location.php" instead of "msl-plugins.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected1,910 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 99 | 328 | 878 |
SVG | 10 | 25 | 10 | 813 |
PO File | 1 | 44 | 47 | 106 |
CSS | 2 | 11 | 11 | 87 |
JSON | 1 | 0 | 0 | 23 |
JavaScript | 1 | 0 | 10 | 3 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.06 |
Average class complexity | 4.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 48 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 48 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
14 PNG files occupy 1.20MB with 0.54MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
doc/img/type_icon.PNG | 27.65KB | 13.47KB | ▼ 51.30% |
doc/img/menu.png | 9.80KB | 5.99KB | ▼ 38.86% |
doc/img/ext_add.png | 7.01KB | 4.39KB | ▼ 37.36% |
doc/img/ext_menu.png | 12.26KB | 7.33KB | ▼ 40.24% |
doc/img/search_MSL.png | 166.45KB | 68.85KB | ▼ 58.64% |