Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.69ms] Passed 4 tests
A check of server-side resources used by Interactive Regional Map of Africa
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.63 ▼5.76 |
Dashboard /wp-admin | 3.32 ▲0.01 | 47.81 ▲0.29 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.74 ▲0.50 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 88.84 ▼17.80 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 38.76 ▲2.10 |
Server storage [IO: ▲0.76MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 99 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Interactive Regional Map of Africa
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲84 | 13.17 ▼1.21 | 1.92 ▼0.00 | 42.18 ▼5.59 |
Dashboard /wp-admin | 2,223 ▲35 | 5.83 ▲0.93 | 104.03 ▲2.75 | 83.29 ▲40.13 |
Posts /wp-admin/edit.php | 2,109 ▲20 | 1.98 ▼0.05 | 35.51 ▼6.82 | 34.66 ▼0.55 |
Add New Post /wp-admin/post-new.php | 1,682 ▲138 | 22.63 ▲4.22 | 686.30 ▲54.60 | 72.59 ▲16.69 |
Media Library /wp-admin/upload.php | 1,405 ▲23 | 4.12 ▼0.02 | 100.47 ▲3.64 | 45.11 ▲2.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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 fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/interactive-map-of-africa/design/map.php
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/interactive-map-of-africa/design/admin.php:1
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/interactive-map-of-africa/config.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/interactive-map-of-africa/afr-map.php:81
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
interactive-map-of-africa/afr-map.php 92% from 13 tests
"Interactive Regional Map of Africa" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("interactive-map-of-africa.php" instead of "afr-map.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin1,647 lines of code in 65 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 50 | 7 | 13 | 761 |
CSS | 8 | 20 | 3 | 401 |
PHP | 4 | 24 | 8 | 352 |
SVG | 2 | 0 | 0 | 125 |
HTML | 1 | 0 | 0 | 8 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 90.00% |
▷ Protected methods | 1 | 10.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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 Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/map-icon.png | 1.30KB | 0.50KB | ▼ 61.79% |
images/icons.png | 15.88KB | 5.44KB | ▼ 65.72% |
images/map-icons.png | 3.93KB | 2.40KB | ▼ 38.85% |
images/africa-premium.png | 14.97KB | 13.96KB | ▼ 6.75% |