Benchmarks
Plugin footprint 65% 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.00MB] [CPU: ▼7.05ms] Passed 4 tests
Analyzing server-side resources used by Pin Locations on Map
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.61 ▲3.81 |
Dashboard /wp-admin | 3.32 ▼0.03 | 44.42 ▼15.26 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 44.88 ▼0.96 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 78.74 ▼11.91 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.72 ▼0.06 |
Server storage [IO: ▲0.52MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 16 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_plom_map |
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Pin Locations on Map
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲48 | 14.29 ▼0.07 | 1.71 ▲0.06 | 48.45 ▲6.73 |
Dashboard /wp-admin | 2,209 ▲29 | 5.56 ▼0.07 | 85.24 ▼0.01 | 36.12 ▼3.11 |
Posts /wp-admin/edit.php | 2,137 ▲37 | 2.22 ▲0.22 | 41.46 ▲4.93 | 36.68 ▲3.22 |
Add New Post /wp-admin/post-new.php | 1,554 ▲28 | 18.12 ▼5.16 | 620.39 ▼85.59 | 61.25 ▼7.98 |
Media Library /wp-admin/upload.php | 1,427 ▲30 | 4.24 ▲0.06 | 98.67 ▼35.58 | 44.35 ▼8.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_plom_map
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
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
Even though everything seems fine, this is not 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
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pin-locations-on-map/plom_map.php:49
- > 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
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Screenshots: Please describe screenshot #1 in pin-locations-on-map/assets to your readme.txt
pin-locations-on-map/plom_map.php 85% from 13 tests
"Pin Locations on Map" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 144 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("pin-locations-on-map.php" instead of "plom_map.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin824 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 37 | 8 | 312 |
PHP | 1 | 44 | 18 | 272 |
CSS | 1 | 2 | 0 | 240 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
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 | 12 | |
▷ Named functions | 12 | 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.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/pin_old.png | 1.92KB | 1.31KB | ▼ 31.99% |
images/arrow.png | 1.26KB | 0.40KB | ▼ 68.01% |
images/delete.png | 0.74KB | 0.92KB | 0.00% |
images/pin.png | 1.58KB | 0.82KB | ▼ 47.74% |
images/bottom_bg.png | 1.61KB | 0.78KB | ▼ 51.79% |