Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼6.62ms] Passed 4 tests
Analyzing server-side resources used by Arrow Maps - Custom Maps for WordPress
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 36.16 ▲0.92 |
Dashboard /wp-admin | 3.38 ▲0.08 | 44.95 ▼4.10 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 45.00 ▼3.12 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 79.64 ▼19.67 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 34.96 ▲0.40 |
Server storage [IO: ▲6.82MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 223 new files
Database: no new tables, 7 new options
New WordPress options |
---|
arrow-google-maps-admin-options |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Arrow Maps - Custom Maps for WordPress
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲76 | 13.22 ▼1.15 | 2.76 ▲1.00 | 40.99 ▼3.05 |
Dashboard /wp-admin | 2,215 ▲27 | 5.79 ▼0.12 | 98.32 ▼2.42 | 38.56 ▼4.25 |
Posts /wp-admin/edit.php | 2,101 ▲12 | 2.03 ▲0.06 | 34.76 ▼7.88 | 34.26 ▼0.34 |
Add New Post /wp-admin/post-new.php | 1,552 ▲19 | 18.54 ▼4.59 | 637.08 ▼20.00 | 52.49 ▼2.96 |
Media Library /wp-admin/upload.php | 1,403 ▲15 | 4.24 ▲0.10 | 97.95 ▼7.61 | 45.28 ▲2.33 |
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
The following items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- arrow-google-maps-admin-options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ap-google-maps/arrow-google-maps.php:66
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Tags: You are using too many tags: 11 tag instead of maximum 10
ap-google-maps/arrow-google-maps.php 92% from 13 tests
"Arrow Maps - Custom Maps for WordPress" version 1.0.9'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 ("ap-google-maps.php" instead of "arrow-google-maps.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin1,671 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 180 | 62 | 826 |
HTML | 1 | 83 | 27 | 463 |
SVG | 3 | 0 | 0 | 231 |
JavaScript | 6 | 13 | 0 | 147 |
CSS | 4 | 0 | 4 | 4 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
203 compressed PNG files occupy 5.95MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/admin/styles/93.png | 61.39KB | 52.88KB | ▼ 13.86% |
img/admin/styles/65.png | 66.51KB | 57.66KB | ▼ 13.31% |
img/icons/90.png | 1.90KB | 1.51KB | ▼ 20.17% |
img/icons/12.png | 1.20KB | 1.49KB | 0.00% |
img/icons/79.png | 1.86KB | 1.56KB | ▼ 16.09% |