Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▼4.97ms] 75% from 4 tests
An overview of server-side resources used by Mapplic Lite
The following require your attention
- CPU: Try to keep total CPU usage under 500.00ms (currently 518.19ms on /wp-admin/edit.php?post_type=mapplic_map)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 41.31 ▼0.16 |
Dashboard /wp-admin | 3.52 ▲0.21 | 54.77 ▲5.87 |
Posts /wp-admin/edit.php | 3.63 ▲0.27 | 50.65 ▼8.64 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 89.73 ▼16.95 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 44.38 ▲7.32 |
Add New /wp-admin/post-new.php?post_type=mapplic_map | 3.49 | 45.71 |
Upgrade /wp-admin/edit.php?post_type=mapplic_map&page=upgrade_mapplic | 3.45 | 37.85 |
All Maps /wp-admin/edit.php?post_type=mapplic_map | 3.68 | 518.19 |
Server storage [IO: ▲2.04MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 84 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
mapplic-lite-version |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Mapplic Lite
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲60 | 14.27 ▲0.24 | 1.70 ▼0.21 | 40.35 ▼4.07 |
Dashboard /wp-admin | 2,227 ▲47 | 5.57 ▼0.13 | 83.11 ▼7.51 | 39.92 ▼7.27 |
Posts /wp-admin/edit.php | 2,135 ▲35 | 2.04 ▲0.04 | 38.84 ▲1.08 | 35.44 ▼1.10 |
Add New Post /wp-admin/post-new.php | 1,572 ▲41 | 23.35 ▲0.30 | 668.64 ▲5.96 | 54.56 ▲0.02 |
Media Library /wp-admin/upload.php | 1,432 ▲35 | 4.23 ▼0.02 | 111.46 ▲1.15 | 47.84 ▲1.17 |
Add New /wp-admin/post-new.php?post_type=mapplic_map | 1,821 | 3.87 | 74.74 | 89.46 |
Upgrade /wp-admin/edit.php?post_type=mapplic_map&page=upgrade_mapplic | 844 | 2.01 | 22.97 | 29.73 |
All Maps /wp-admin/edit.php?post_type=mapplic_map | 2,057 | 3.32 | 64.42 | 85.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-comments
- mapplic-lite-version
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- > GET request to /wp-admin/edit.php?post_type=mapplic_map&page=upgrade_mapplic
- > Warning in wp-admin/upgrade.php+57
Cannot modify header information - headers already sent by (output started at wp-includes/script-loader.php:2838)
- > GET request to /wp-admin/edit.php?post_type=mapplic_map&page=upgrade_mapplic
- > Notice in wp-admin/upgrade.php+71
Undefined variable: wp_db_version
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
Almost there! Just fix the following items
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/mapplic-lite/admin/upgrade.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/mapplic-lite/trunk/admin/upgrade.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mapplic-lite/mapplic-lite.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mapplic-lite/trunk/mapplic-lite.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 97% 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
These attributes need to be fixed:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
mapplic-lite/mapplic-lite.php Passed 13 tests
"Mapplic Lite" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
103 characters long description:
Turn simple images and vector graphics into high quality, responsive and fully interactive custom maps.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin15,543 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 17 | 19 | 1 | 8,071 |
JavaScript | 6 | 963 | 420 | 3,429 |
CSS | 5 | 486 | 132 | 2,986 |
PHP | 7 | 182 | 90 | 1,057 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 12.50 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 2.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 36 | |
▷ Static methods | 2 | 5.56% |
▷ Public methods | 36 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 28 | |
▷ Named functions | 28 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/pin-image.png | 0.41KB | 0.25KB | ▼ 38.57% |
trunk/admin/img/transparency-grid.png | 2.58KB | 2.80KB | 0.00% |
trunk/core/images/error-icon.png | 3.34KB | 0.90KB | ▼ 73.14% |
trunk/images/pin-image.png | 0.41KB | 0.25KB | ▼ 38.57% |
admin/img/transparency-grid.png | 2.58KB | 2.80KB | 0.00% |