Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.18ms] Passed 4 tests
Analyzing server-side resources used by MapHilight for Wordpress
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 47.23 ▲5.88 |
Dashboard /wp-admin | 3.34 ▲0.04 | 49.40 ▼0.37 |
Posts /wp-admin/edit.php | 3.45 ▲0.10 | 50.74 ▼6.93 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 84.35 ▼11.28 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 40.99 ▲6.21 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
Map_Hilight |
Browser metrics Passed 4 tests
This is an overview of browser requirements for MapHilight for Wordpress
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲43 | 14.24 ▼0.11 | 1.89 ▲0.10 | 42.55 ▲2.16 |
Dashboard /wp-admin | 2,210 ▲33 | 5.55 ▼0.04 | 91.73 ▲3.15 | 60.77 ▲19.97 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 2.02 ▲0.04 | 38.51 ▼2.81 | 35.99 ▼1.05 |
Add New Post /wp-admin/post-new.php | 1,693 ▲158 | 22.25 ▲4.14 | 654.22 ▼8.05 | 53.90 ▼6.16 |
Media Library /wp-admin/upload.php | 1,409 ▲12 | 4.15 ▼0.10 | 101.66 ▼5.35 | 74.72 ▲30.83 |
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
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'uninstall' not found or invalid function name
- Zombie WordPress options were found after uninstall: 7 options
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- Map_Hilight
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
Even though no errors were found, this is by no means an exhaustive test
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
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'Map_Hilight' not found in wp-content/plugins/maphilight/views/page-general.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/maphilight/classes/Map_Hilight_Plugin.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Screenshots: Please add an image for screenshot #1 (An example of the "General" admin parameters page.)
- Donate link: Invalid URI ("")
maphilight/maphilight.php Passed 13 tests
The main PHP script in "MapHilight for Wordpress" version 0.2 is automatically included on every request by WordPress
100 characters long description:
MapHilight makes it easy to integrate the javascript needed to make your maps or images interactive.
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 plugin435 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 97 | 192 | 240 |
PO File | 2 | 35 | 37 | 98 |
JavaScript | 4 | 9 | 10 | 58 |
Markdown | 1 | 18 | 0 | 39 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 3.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 19 | 100.00% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 100.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
3 compressed PNG files occupy 0.02MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon-16x16.png | 0.83KB | 0.80KB | ▼ 4.57% |
images/icon-32x32.png | 1.53KB | 1.47KB | ▼ 3.71% |
screenshot-1.png | 19.62KB | 18.96KB | ▼ 3.37% |