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.16MB] [CPU: ▼1.18ms] Passed 4 tests
Server-side resources used by My Maps
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 57.31 ▲11.43 |
Dashboard /wp-admin | 3.53 ▲0.23 | 51.03 ▼2.91 |
Posts /wp-admin/edit.php | 3.58 ▲0.23 | 53.91 ▲1.26 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 87.69 ▼6.85 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 39.70 ▲3.77 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 23 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_plance_msm_maps |
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for My Maps
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲41 | 24.95 ▲10.71 | 1.89 ▲0.05 | 40.16 ▼12.20 |
Dashboard /wp-admin | 2,243 ▲69 | 17.91 ▲12.25 | 254.06 ▲160.96 | 39.52 ▼2.95 |
Posts /wp-admin/edit.php | 2,148 ▲48 | 14.55 ▲12.52 | 207.05 ▲170.77 | 34.85 ▼4.85 |
Add New Post /wp-admin/post-new.php | 1,725 ▲199 | 34.79 ▲11.70 | 753.04 ▲87.95 | 34.98 ▼23.16 |
Media Library /wp-admin/upload.php | 1,448 ▲48 | 16.40 ▲12.20 | 242.86 ▲138.73 | 42.23 ▼4.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
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 no errors were found, this is by no means an exhaustive test
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
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/my-maps/app/view/admin/data/index.php
- > /wp-content/plugins/my-maps/my-maps.php
- > /wp-content/plugins/my-maps/app/db.php
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'Plance_Controller' not found in wp-content/plugins/my-maps/app/controller/admin/Data.php:3
- > PHP Notice
Undefined variable: page_title in wp-content/plugins/my-maps/app/view/admin/data/add.php on line 3
- > PHP Notice
Undefined variable: _page in wp-content/plugins/my-maps/app/view/admin/data/add.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/my-maps/app/view/admin/data/add.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: google, map, shortcode
my-maps/my-maps.php Passed 13 tests
This is the main PHP file of "My Maps" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
49 characters long description:
Creating shortcode maps, using friendly interface
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
Everything looks great! No dangerous files found in this plugin1,280 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 217 | 438 | 1,150 |
PO File | 1 | 30 | 30 | 81 |
JavaScript | 1 | 6 | 0 | 40 |
CSS | 1 | 2 | 0 | 9 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 8.07 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 2.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 79 | |
▷ Static methods | 28 | 35.44% |
▷ Public methods | 69 | 87.34% |
▷ Protected methods | 1 | 1.27% |
▷ Private methods | 9 | 11.39% |
Functions | 8 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 8 | 100.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin