Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.83ms] Passed 4 tests
Server-side resources used by Elmo
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 36.45 ▲1.24 |
Dashboard /wp-admin | 3.33 ▼0.01 | 43.82 ▼19.22 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 42.53 ▼2.37 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 90.20 ▲1.04 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 35.33 ▲1.46 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
elmo_code_v2 |
elmo_language |
elmo_code |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Elmo: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲79 | 14.35 ▲0.18 | 1.71 ▲0.20 | 44.27 ▲8.22 |
Dashboard /wp-admin | 2,249 ▲69 | 5.68 ▲0.08 | 84.92 ▼6.73 | 38.95 ▼3.56 |
Posts /wp-admin/edit.php | 2,152 ▲49 | 2.00 ▼0.03 | 36.71 ▼2.99 | 37.22 ▲1.09 |
Add New Post /wp-admin/post-new.php | 1,548 ▲22 | 18.33 ▼5.40 | 641.87 ▼145.35 | 75.09 ▲9.37 |
Media Library /wp-admin/upload.php | 1,454 ▲54 | 4.25 ▲0.08 | 101.40 ▲1.42 | 42.07 ▼3.94 |
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
These items require your attention
- The uninstall procedure has failed, leaving 9 options in the database
- widget_theysaidso_widget
- elmo_code_v2
- theysaidso_admin_options
- elmo_code
- widget_recent-comments
- elmo_language
- widget_recent-posts
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
The following issues need your attention
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/elmo-privacylab/includes/class-elmo-plugin.php:47
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/elmo-privacylab/includes/class-elmo-plugin.php:47
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
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: privacy, gdpr, cookie
elmo-privacylab/elmo.php 85% from 13 tests
"Elmo" version 1.2.0'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: Keep the plugin description shorter than 140 characters (currently 191 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("elmo-privacylab.php" instead of "elmo.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected299 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 29 | 144 | 194 |
PO File | 1 | 18 | 23 | 75 |
SVG | 2 | 0 | 0 | 30 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 12.50 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 2 | 100.00% |
Methods | 14 | |
▷ Static methods | 2 | 14.29% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected