Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼2.77ms] Passed 4 tests
A check of server-side resources used by Mapple
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.44 ▼0.02 | 29.62 ▼12.77 |
Dashboard /wp-admin | 3.39 ▲0.09 | 49.38 ▲1.09 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 63.29 ▲18.15 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 94.10 ▼0.13 |
Media Library /wp-admin/upload.php | 3.29 ▲0.07 | 35.63 ▲0.72 |
Clients /wp-admin/edit.php?post_type=clients | 3.37 | 37.76 |
Settings /wp-admin/edit.php?post_type=clients&page=mapple-settings | 3.33 | 35.45 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=clients | 3.32 | 37.41 |
Add New Client /wp-admin/post-new.php?post_type=clients | 5.65 | 70.73 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 41 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Mapple
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,004 ▲269 | 14.84 ▲0.46 | 1.83 ▼0.02 | 41.42 ▼3.33 |
Dashboard /wp-admin | 2,380 ▲192 | 6.50 ▲1.61 | 134.44 ▲19.69 | 41.05 ▼4.10 |
Posts /wp-admin/edit.php | 2,289 ▲200 | 3.33 ▲1.28 | 55.06 ▲16.94 | 35.40 ▲5.31 |
Add New Post /wp-admin/post-new.php | 1,559 ▲37 | 23.42 ▲0.42 | 659.43 ▼27.38 | 37.74 ▼23.07 |
Media Library /wp-admin/upload.php | 1,425 ▲43 | 4.25 ▲0.05 | 80.59 ▼29.76 | 41.99 ▼5.58 |
Clients /wp-admin/edit.php?post_type=clients | 1,255 | 3.32 | 47.97 | 37.32 |
Settings /wp-admin/edit.php?post_type=clients&page=mapple-settings | 1,143 | 3.37 | 37.46 | 26.96 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=clients | 1,501 | 3.13 | 42.72 | 28.73 |
Add New Client /wp-admin/post-new.php?post_type=clients | 6,295 | 19.77 | 812.63 | 34.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/post-new.php?post_type=clients
- > Notice in wp-content/plugins/mapple/admin/partials/mapple-admin-field-text-address.php+21
Trying to access array offset on value of type bool
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 take a closer look at the following
- 4× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/mapple/public/templates/mapple-client-table-end.php
- > /wp-content/plugins/mapple/public/templates/mapple-client-search.php
- > /wp-content/plugins/mapple/public/partials/mapple-public-display.php
- > /wp-content/plugins/mapple/admin/partials/mapple-admin-display.php
- 15× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/mapple/admin/partials/mapple-admin-field-image.php:18
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/mapple/public/templates/mapple-client-search.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/mapple/admin/partials/mapple-admin-field-text.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/mapple/public/templates/mapple-client-content.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/mapple/admin/partials/mapple-admin-field-text-address.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/mapple/public/templates/mapple-loop-clients.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/mapple/admin/partials/mapple-admin-metabox-client-additional-info.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/mapple/admin/partials/mapple-admin-field-textarea.php:18
- > PHP Notice
Undefined variable: atts in wp-content/plugins/mapple/public/templates/mapple-client-search.php on line 3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/mapple/public/templates/mapple-client-search.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: no style, client cpt, shortcode, no jquery, google maps
mapple/mapple.php 92% from 13 tests
The principal PHP file in "Mapple" v. 1.5.2 is loaded by WordPress automatically on each request
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 150 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,494 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 29 | 502 | 1,129 | 1,058 |
JavaScript | 2 | 50 | 17 | 239 |
CSS | 1 | 24 | 5 | 86 |
PO File | 1 | 26 | 32 | 79 |
Markdown | 1 | 14 | 0 | 32 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 7.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 2.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 68 | |
▷ Static methods | 6 | 8.82% |
▷ Public methods | 52 | 76.47% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 16 | 23.53% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin