Benchmarks
Plugin footprint 65% 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: ▼1.81MB] [CPU: ▼190.96ms] Passed 4 tests
This is a short check of server-side resources used by Posts Maps
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.82 ▼1.01 | 9.00 ▼27.35 |
Dashboard /wp-admin | 1.84 ▼1.21 | 5.53 ▼43.42 |
Posts /wp-admin/edit.php | 1.84 ▼1.26 | 9.17 ▼38.06 |
Add New Post /wp-admin/post-new.php | 1.84 ▼3.59 | 5.01 ▼655.00 |
Media Library /wp-admin/upload.php | 1.84 ▼1.16 | 8.59 ▼26.93 |
Markers /wp-admin/admin.php?page=posts-maps-marker-icons | 1.84 | 7.61 |
Posts Maps /wp-admin/admin.php?page=posts-maps | 1.84 | 6.60 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 37 new files
Database: no new tables, 1 new option
New WordPress options |
---|
pm_marker_icons |
Browser metrics Passed 4 tests
Checking browser requirements for Posts Maps
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,844 ▲248 | 17.50 ▲2.02 | 17.12 ▲9.43 | 50.12 ▲1.02 |
Dashboard /wp-admin | 2,999 ▲65 | 7.12 ▲1.14 | 148.28 ▼11.01 | 162.64 ▲46.88 |
Posts /wp-admin/edit.php | 2,799 ▲60 | 2.87 ▲0.18 | 72.92 ▲5.10 | 130.65 ▲41.43 |
Add New Post /wp-admin/post-new.php | 1,611 ▲20 | 15.43 ▼3.16 | 422.46 ▲19.09 | 137.12 ▲20.46 |
Media Library /wp-admin/upload.php | 1,793 ▼32 | 5.70 ▲0.70 | 150.46 ▲2.88 | 143.90 ▲16.50 |
Markers /wp-admin/admin.php?page=posts-maps-marker-icons | 1,338 | 3.06 | 64.32 | 106.92 |
Posts Maps /wp-admin/admin.php?page=posts-maps | 1,175 | 2.93 | 60.04 | 84.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > User notice in wp-includes/functions.php+5663
wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the posts-maps handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- The uninstall procedure has failed, leaving 1 option in the database
- pm_marker_icons
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=posts-maps
- > User notice in wp-includes/functions.php+5663
wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the posts-maps handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=posts-maps
- > User notice in wp-includes/functions.php+5663
wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the maps-googleapis handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=posts-maps
- > User notice in wp-includes/functions.php+5663
wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the pm-js handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=posts-maps
- > Notice in wp-content/plugins/posts-maps/PostsMaps/core/Plugin.php+139
Undefined property: PostsMapsCorePlugin::$PostsMapsController
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 take a closer look at the following
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/posts-maps/PostsMaps/views/marker.php:2
- > PHP Fatal error
Uncaught Error: Class 'PostsMapsCorePlugin' not found in wp-content/plugins/posts-maps/PostsMaps/controllers/PostsMapsController.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/posts-maps/PostsMaps/views/adminFieldsBox.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/posts-maps/PostsMaps/views/main.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/posts-maps/PostsMaps/core/Plugin.php:55
- > PHP Fatal error
Uncaught Error: Class 'CorePlugin' not found in wp-content/plugins/posts-maps/PostsMaps/core/Plugin.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% 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
Attributes that require attention:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== posts-maps ===
)
posts-maps/posts-maps.php Passed 13 tests
This is the main PHP file of "Posts Maps" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
10 characters long description:
Posts maps
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
Success! There were no dangerous files found in this plugin903 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 65 | 10 | 647 |
JavaScript | 1 | 19 | 0 | 218 |
CSS | 1 | 1 | 0 | 38 |
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.49 |
Average class complexity | 9.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 2.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 34 | 80.95% |
▷ Protected methods | 2 | 4.76% |
▷ Private methods | 6 | 14.29% |
Functions | 13 | |
▷ Named functions | 13 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
19 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/nat.png | 1.92KB | 0.89KB | ▼ 53.74% |
assets/images/bea.png | 2.27KB | 1.63KB | ▼ 28.20% |
assets/images/pyr.png | 1.96KB | 1.47KB | ▼ 24.99% |
assets/images/cit.png | 1.63KB | 0.75KB | ▼ 54.34% |
assets/images/squ.png | 2.23KB | 1.79KB | ▼ 19.80% |