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.27MB] [CPU: ▼6.87ms] Passed 4 tests
An overview of server-side resources used by Mapp Intelligence
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.78 ▲0.32 | 37.08 ▼5.94 |
Dashboard /wp-admin | 3.61 ▲0.27 | 53.02 ▼9.14 |
Posts /wp-admin/edit.php | 3.66 ▲0.31 | 51.84 ▲5.68 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.27 | 88.59 ▼13.51 |
Media Library /wp-admin/upload.php | 3.47 ▲0.24 | 36.32 ▲1.11 |
Mapp Cloud /wp-admin/plugins.php?page=mapp-intelligence | 3.54 | 32.06 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Mapp Intelligence
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲41 | 14.38 ▲0.11 | 3.57 ▲1.81 | 40.86 ▼2.96 |
Dashboard /wp-admin | 2,202 ▲25 | 5.50 ▼0.07 | 81.18 ▼7.85 | 37.38 ▼6.58 |
Posts /wp-admin/edit.php | 2,107 ▲10 | 2.04 ▲0.03 | 34.92 ▲0.98 | 33.38 ▼1.89 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 23.64 ▲0.07 | 623.25 ▼67.62 | 51.46 ▼1.42 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.24 ▲0.03 | 92.96 ▼9.17 | 40.61 ▼3.32 |
Mapp Cloud /wp-admin/plugins.php?page=mapp-intelligence | 902 | 1.86 | 28.49 | 23.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Trait 'MappCloud\\Intelligence\\DataLayer\\Page' not found in wp-content/plugins/mapp-intelligence/src/Intelligence/DataLayer/DataLayer.php on line 10
- > 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 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: tracking, marketing, analytics
mapp-intelligence/mapp_intelligence.php 85% from 13 tests
The main file in "Mapp Intelligence" v. 1.1.9 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("mapp-intelligence.php" instead of "mapp_intelligence.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 159 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
No dangerous file extensions were detected2,269 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 215 | 398 | 1,790 |
JavaScript | 3 | 0 | 0 | 357 |
PO File | 1 | 27 | 29 | 109 |
HTML | 1 | 1 | 0 | 12 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 14.13 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 88.00 |
Average method complexity | 3.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 3 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 80 | |
▷ Static methods | 18 | 22.50% |
▷ Public methods | 71 | 88.75% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 11.25% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
No PNG files were detected