Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/posts-on-a-map/class.point.php+13
Methods with the same name as their class will not be constructors in a future version of PHP; point has a deprecated constructor
Server metrics [RAM: ▼1.87MB] [CPU: ▼54.11ms] Passed 4 tests
A check of server-side resources used by Posts on a map
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.12 ▼1.35 | 5.82 ▼35.55 |
Dashboard /wp-admin | 2.14 ▼1.17 | 7.50 ▼44.49 |
Posts /wp-admin/edit.php | 2.14 ▼1.22 | 8.11 ▼44.59 |
Add New Post /wp-admin/post-new.php | 2.14 ▼3.75 | 5.52 ▼91.82 |
Media Library /wp-admin/upload.php | 2.14 ▼1.09 | 7.30 ▼27.23 |
Posts on a map settings /wp-admin/options-general.php?page=jc_posts_map_settings | 2.14 | 6.68 |
Server storage [IO: ▲0.53MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Posts on a map
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲78 | 14.13 ▼0.25 | 24.10 ▲21.95 | 40.79 ▼9.72 |
Dashboard /wp-admin | 2,210 ▲30 | 4.89 ▼0.06 | 110.67 ▼39.95 | 43.60 ▼15.34 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.04 ▲0.01 | 35.31 ▼6.28 | 30.53 ▼4.39 |
Add New Post /wp-admin/post-new.php | 1,522 ▼11 | 20.54 ▼2.71 | 660.98 ▲39.56 | 53.23 ▲0.71 |
Media Library /wp-admin/upload.php | 1,395 ▲13 | 4.12 ▼0.09 | 98.96 ▼3.36 | 40.79 ▼1.25 |
Posts on a map settings /wp-admin/options-general.php?page=jc_posts_map_settings | 830 | 2.01 | 24.48 | 26.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/posts-on-a-map/class.point.php+13
Methods with the same name as their class will not be constructors in a future version of PHP; point has a deprecated constructor
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=jc_posts_map_settings
- > Deprecated in wp-content/plugins/posts-on-a-map/class.point.php+13
Methods with the same name as their class will not be constructors in a future version of PHP; point has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=jc_posts_map_settings
- > Deprecated in wp-content/plugins/posts-on-a-map/class.map.php+13
Methods with the same name as their class will not be constructors in a future version of PHP; map has a deprecated constructor
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
Please fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/posts-on-a-map/map.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% 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:
- Screenshots: Please add images for these screenshots: #1 (Field in the Wordpress admin), #2 (How it looks on the page)
posts-on-a-map/map.php 85% from 13 tests
"Posts on a map" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("posts-on-a-map.php" instead of "map.php")
- Description: Keep the plugin description shorter than 140 characters (currently 142 characters long)
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
Everything looks great! No dangerous files found in this plugin495 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 91 | 71 | 495 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 21.50 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 2.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 26 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.51MB with 0.34MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 15.05KB | 6.19KB | ▼ 58.86% |
point.png | 3.68KB | 0.77KB | ▼ 79.11% |
screenshot-2.png | 500.97KB | 190.02KB | ▼ 62.07% |