Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.35MB] [CPU: ▼4.76ms] Passed 4 tests
Analyzing server-side resources used by WP Mapa Politico España
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.80 ▲0.34 | 43.00 ▲2.51 |
Dashboard /wp-admin | 3.65 ▲0.34 | 49.32 ▼1.53 |
Posts /wp-admin/edit.php | 3.76 ▲0.40 | 47.23 ▼0.96 |
Add New Post /wp-admin/post-new.php | 6.25 ▲0.36 | 95.19 ▼7.70 |
Media Library /wp-admin/upload.php | 3.57 ▲0.34 | 35.91 ▼8.86 |
WP Mapa Politico /wp-admin/options-general.php?page=wpmps_settings | 3.54 | 33.97 |
Server storage [IO: ▲1.38MB] [DB: ▲0.03MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 28 new files
Database: no new tables, 16 new options
New WordPress options |
---|
wpmps_background_provincia_color |
widget_recent-comments |
wpmps_plugin_mapas |
wpmps_version |
wpmps_hover_provincia_color |
theysaidso_admin_options |
wpmps_background_color |
wpmps_border_color |
widget_theysaidso_widget |
widget_recent-posts |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Mapa Politico España
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲36 | 14.35 ▲0.08 | 1.63 ▼0.03 | 44.75 ▲5.06 |
Dashboard /wp-admin | 2,203 ▲23 | 5.65 ▼0.02 | 88.15 ▲0.33 | 41.92 ▼2.06 |
Posts /wp-admin/edit.php | 2,105 ▲8 | 2.02 ▼0.00 | 35.56 ▼2.87 | 31.57 ▼1.88 |
Add New Post /wp-admin/post-new.php | 1,533 ▼146 | 23.60 ▲1.80 | 635.50 ▼34.41 | 56.67 ▲5.47 |
Media Library /wp-admin/upload.php | 1,408 ▲11 | 4.42 ▲0.25 | 95.48 ▼9.73 | 43.55 ▼1.04 |
WP Mapa Politico /wp-admin/options-general.php?page=wpmps_settings | 921 | 1.72 | 31.01 | 33.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wp-mapa-politico-spain/wp-mapa-politico.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-mapa-politico-spain/includes/shortcodes.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 96% from 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
6 plugin tags: map, plugin, spain, svg, image...
wp-mapa-politico-spain/wp-mapa-politico.php 92% from 13 tests
"WP Mapa Politico España" version 3.7.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-mapa-politico-spain.php" instead of "wp-mapa-politico.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
Everything looks great! No dangerous files found in this plugin2,386 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 351 | 311 | 1,233 |
SVG | 2 | 148 | 4 | 987 |
PO File | 1 | 44 | 55 | 121 |
JavaScript | 4 | 5 | 1 | 20 |
Markdown | 1 | 7 | 0 | 13 |
CSS | 2 | 0 | 0 | 12 |
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.27 |
Average class complexity | 22.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 4.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 4 | 14.29% |
▷ Public methods | 26 | 92.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 7.14% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.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
5 PNG files occupy 0.41MB with 0.25MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-3.png | 109.50KB | 35.40KB | ▼ 67.67% |
assets/icon-128x128.png | 8.32KB | 3.71KB | ▼ 55.38% |
assets/screenshot-2.png | 128.63KB | 52.90KB | ▼ 58.87% |
assets/screenshot-1.png | 43.60KB | 19.68KB | ▼ 54.87% |
assets/banner-772x250.png | 130.33KB | 48.76KB | ▼ 62.59% |