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.11MB] [CPU: ▼1.02ms] Passed 4 tests
Analyzing server-side resources used by Zone Marker
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 39.75 ▼3.89 |
Dashboard /wp-admin | 3.43 ▲0.12 | 47.09 ▼2.93 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 49.43 ▲0.89 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 95.95 ▲2.73 |
Media Library /wp-admin/upload.php | 3.36 ▲0.12 | 37.06 ▲1.87 |
Zone Marker /wp-admin/options-general.php?page=gil_zm_section | 3.32 | 34.15 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
gil_zm_settings |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
gil_zm_layout |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Zone Marker
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,803 ▲56 | 13.74 ▼0.58 | 1.65 ▲0.10 | 42.30 ▼0.96 |
Dashboard /wp-admin | 2,205 ▲24 | 5.69 ▼0.03 | 110.70 ▲5.64 | 41.38 ▼0.41 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 2.76 ▲0.82 | 47.43 ▲5.86 | 36.97 ▼3.11 |
Add New Post /wp-admin/post-new.php | 1,537 ▲11 | 23.73 ▲0.13 | 617.32 ▲0.22 | 33.66 ▼11.80 |
Media Library /wp-admin/upload.php | 1,413 ▲10 | 5.14 ▲0.95 | 103.65 ▲6.03 | 42.15 ▼1.02 |
Zone Marker /wp-admin/options-general.php?page=gil_zm_section | 908 | 2.72 | 32.65 | 31.42 |
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 detected upon uninstall: 8 options
- db_upgraded
- gil_zm_layout
- widget_recent-posts
- theysaidso_admin_options
- gil_zm_settings
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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
Please fix the following items
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/zone-marker/admin/zone-marker-admin.php:14
- > PHP Warning
require_once(ABSPATH/wp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/zone-marker/zone-marker.php on line 19
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/zone-marker/zone-marker.php on line 19
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATH/wp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/zone-marker/zone-marker.php on line 19
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
- > GET request to /wp-admin/options-general.php?page=gil_zm_section
- > Network (severe)
wp-content/plugins/zone-marker/public/css/gil-zone-marker.css - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=gil_zm_section
- > Console-api (warning) in unknown
http://maps.googleapis.com/maps/api/js?key&libraries=geometry&ver=6.3.1 224:51 "Google Maps JavaScript API has been loaded directly without a callback. This is not supported and can lead to race conditions and suboptimal performance. For supported loading patterns please see https://goo.gle/js-api-loading"
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: drones, boundaries, video, maps, aerial...
zone-marker/zone-marker.php 92% from 13 tests
"Zone Marker" version 1.0.45'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:
- Description: Please don't use more than 140 characters for the plugin description (currently 141 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,387 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 98 | 102 | 573 |
PO File | 3 | 183 | 189 | 469 |
JavaScript | 1 | 33 | 33 | 186 |
CSS | 2 | 21 | 6 | 107 |
SVG | 3 | 0 | 3 | 52 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/marker.png | 0.66KB | 0.63KB | ▼ 5.17% |
admin/images/logo.png | 1.04KB | 0.89KB | ▼ 14.68% |