Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/map-posts-free/includes/map-posts-common.php+535
The each() function is deprecated. This message will be suppressed on further calls
Server metrics [RAM: ▼0.57MB] [CPU: ▼16.41ms] Passed 4 tests
An overview of server-side resources used by Map Posts Free
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 40.86 ▼0.37 |
Dashboard /wp-admin | 3.42 ▲0.12 | 45.18 ▼4.80 |
Posts /wp-admin/edit.php | 3.53 ▲0.18 | 48.26 ▼0.06 |
Add New Post /wp-admin/post-new.php | 3.27 ▼2.62 | 37.12 ▼60.41 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 36.76 ▲2.84 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
iptmp_defaults |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Map Posts Free
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.33 ▼1.22 | 1.67 ▼0.15 | 38.25 ▼9.40 |
Dashboard /wp-admin | 2,203 ▲12 | 5.83 ▼0.07 | 97.57 ▼2.93 | 41.07 ▼2.25 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.00 ▲0.02 | 39.20 ▼1.94 | 34.52 ▼0.47 |
Add New Post /wp-admin/post-new.php | 6,463 ▲4,946 | 26.56 ▲8.96 | 851.50 ▲266.69 | 86.72 ▲33.63 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.19 ▼0.04 | 94.21 ▼4.95 | 42.94 ▼0.35 |
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
You still need to fix the following
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/map-posts-free/includes/map-posts-common.php+535
The each() function is deprecated. This message will be suppressed on further calls
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test
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)
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: insert map wordpress, simple map plugin, map, open street map
map-posts-free/map-posts-free.php Passed 13 tests
The main file in "Map Posts Free" v. 1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
94 characters long description:
Configure and insert a map without leaving the editor. Save location as part of post metadata.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin1,241 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 219 | 202 | 614 |
CSS | 1 | 53 | 23 | 560 |
JavaScript | 3 | 28 | 36 | 67 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 44.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 71.00 |
Average method complexity | 5.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.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 | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 94.74% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 5.26% |
Functions | 1 | |
▷ Named functions | 1 | 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
12 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/marker-shadow.png | 0.60KB | 1.16KB | 0.00% |
css/images/marker-icon.png | 1.43KB | 1.55KB | 0.00% |
images/layers.png | 0.68KB | 1.05KB | 0.00% |
images/iptmp_Insert_All_Posts_Map.png | 1.44KB | 0.52KB | ▼ 64.08% |
images/iptmp_Insert_Map.png | 1.51KB | 0.75KB | ▼ 50.23% |