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.11MB] [CPU: ▼5.56ms] Passed 4 tests
Server-side resources used by Navionics WebAPI v2
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.11 | 34.10 ▼5.16 |
Dashboard /wp-admin | 3.41 ▲0.10 | 44.21 ▼4.50 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 43.96 ▼3.20 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 79.71 ▼9.38 |
Media Library /wp-admin/upload.php | 3.34 ▲0.10 | 34.11 ▲1.29 |
All Components /wp-admin/edit.php?post_type=navionics_webapi | 3.38 | 34.64 |
Add New /wp-admin/post-new.php?post_type=navionics_webapi | 3.34 | 38.49 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 66 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Navionics WebAPI v2
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,917 ▲160 | 13.98 ▼0.70 | 4.76 ▲2.61 | 36.66 ▼10.15 |
Dashboard /wp-admin | 2,237 ▲46 | 5.91 ▲1.02 | 110.01 ▲8.29 | 41.71 ▼1.13 |
Posts /wp-admin/edit.php | 2,123 ▲34 | 1.99 ▲0.01 | 36.70 ▼0.20 | 33.71 ▲1.35 |
Add New Post /wp-admin/post-new.php | 1,555 ▲22 | 23.18 ▼0.23 | 659.66 ▼11.04 | 52.35 ▲2.03 |
Media Library /wp-admin/upload.php | 1,422 ▲34 | 4.21 ▲0.02 | 97.25 ▲2.46 | 41.43 ▼2.36 |
All Components /wp-admin/edit.php?post_type=navionics_webapi | 1,104 | 1.95 | 34.31 | 29.57 |
Add New /wp-admin/post-new.php?post_type=navionics_webapi | 1,567 | 2.57 | 50.00 | 58.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/post-new.php?post_type=navionics_webapi
- > Warning in wp-content/plugins/nwa/includes/class-webapi-meta-box.php+78
_() expects exactly 1 parameter, 2 given
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 6× PHP files output text when accessed directly:
- > /wp-content/plugins/nwa/admin/partials/nwa-admin-display.php
- > /wp-content/plugins/nwa/trunk/admin/partials/nwa-admin-display.php
- > /wp-content/plugins/nwa/public/partials/nwa-public-display.php
- > /wp-content/plugins/nwa/trunk/admin/partials/nwa-scripts-template.php
- > /wp-content/plugins/nwa/admin/partials/nwa-scripts-template.php
- > /wp-content/plugins/nwa/trunk/public/partials/nwa-public-display.php
- 16× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/nwa/admin/partials/nwa-scripts-template.php on line 13
- > PHP Notice
Undefined variable: atts in wp-content/plugins/nwa/admin/partials/nwa-scripts-template.php on line 12
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/nwa/trunk/admin/partials/nwa-scripts-template.php on line 13
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/nwa/admin/partials/nwa-scripts-template.php on line 12
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/nwa/trunk/admin/partials/nwa-scripts-template.php on line 12
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/nwa/trunk/admin/partials/nwa-scripts-template.php on line 7
- > PHP Notice
Undefined variable: atts in wp-content/plugins/nwa/admin/partials/nwa-scripts-template.php on line 13
- > PHP Notice
Undefined variable: atts in wp-content/plugins/nwa/trunk/admin/partials/nwa-scripts-template.php on line 13
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/nwa/admin/partials/nwa-scripts-template.php on line 7
- > PHP Notice
Undefined variable: atts in wp-content/plugins/nwa/trunk/admin/partials/nwa-scripts-template.php on line 7
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: These screenshots need descriptions #2, #3 in nwa/assets to your readme.txt
nwa/nwa.php Passed 13 tests
The main file in "Navionics WebAPI v2" v. 0.2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
42 characters long description:
Show Navionics Maps on your Wordpress Site
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin412 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 176 | 601 | 388 |
JavaScript | 4 | 12 | 60 | 16 |
Sass | 2 | 0 | 0 | 8 |
CSS | 4 | 4 | 12 | 0 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 3.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 1.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 66 | |
▷ Static methods | 4 | 6.06% |
▷ Public methods | 56 | 84.85% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 15.15% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 2 | 50.00% |
▷ Class constants | 2 | 50.00% |
▷ Public constants | 2 | 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
There were not PNG files found in your plugin