Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.51MB] [CPU: ▲2.05ms] Passed 4 tests
An overview of server-side resources used by Pop-up
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.98 ▲0.52 | 46.46 ▲5.99 |
Dashboard /wp-admin | 3.81 ▲0.50 | 55.68 ▲4.05 |
Posts /wp-admin/edit.php | 3.91 ▲0.55 | 52.38 ▼0.28 |
Add New Post /wp-admin/post-new.php | 6.40 ▲0.51 | 94.15 ▼1.55 |
Media Library /wp-admin/upload.php | 3.73 ▲0.50 | 46.48 ▲11.20 |
Server storage [IO: ▲0.82MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 136 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
analyst_cache |
widget_recent-comments |
_irb_h_bn_review |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Pop-up
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,115 ▲353 | 14.10 ▼0.03 | 1.90 ▲0.28 | 47.61 ▲3.26 |
Dashboard /wp-admin | 2,491 ▲314 | 5.58 ▼0.08 | 93.48 ▼2.09 | 77.66 ▲35.69 |
Posts /wp-admin/edit.php | 2,417 ▲317 | 2.06 ▲0.10 | 37.28 ▼4.45 | 39.31 ▲1.21 |
Add New Post /wp-admin/post-new.php | 1,880 ▲354 | 22.22 ▼0.56 | 784.26 ▲134.65 | 49.35 ▼10.94 |
Media Library /wp-admin/upload.php | 1,696 ▲296 | 4.25 ▲0.10 | 98.28 ▼4.73 | 68.96 ▲27.15 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 8 options in the database
- _irb_h_bn_review
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- analyst_cache
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 5× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/pop-up-pop-up/analyst/templates/forms/deactivate.php
- > /wp-content/plugins/pop-up-pop-up/views/main.php
- > /wp-content/plugins/pop-up-pop-up/analyst/templates/optout.php
- > /wp-content/plugins/pop-up-pop-up/analyst/templates/forms/install.php
- > /wp-content/plugins/pop-up-pop-up/analyst/templates/optin.php
- 24× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Analyst\\Contracts\\RequestContract' not found in wp-content/plugins/pop-up-pop-up/analyst/src/Http/Requests/AbstractLoggerRequest.php:10
- > PHP Notice
Undefined variable: shieldImage in wp-content/plugins/pop-up-pop-up/analyst/templates/optout.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'Analyst\\Core\\AbstractFactory' not found in wp-content/plugins/pop-up-pop-up/analyst/src/Account/AccountDataFactory.php:15
- > PHP Notice
Undefined variable: smileImage in wp-content/plugins/pop-up-pop-up/analyst/templates/forms/deactivate.php on line 11
- > PHP Fatal error
Uncaught Error: Interface 'Analyst\\Contracts\\HttpClientContract' not found in wp-content/plugins/pop-up-pop-up/analyst/src/Http/DummyHttpClient.php:8
- > PHP Notice
Undefined variable: pluginToInstall in wp-content/plugins/pop-up-pop-up/analyst/templates/forms/install.php on line 1
- > PHP Fatal error
Uncaught Error: Class 'Analyst\\Http\\Requests\\AbstractLoggerRequest' not found in wp-content/plugins/pop-up-pop-up/analyst/src/Http/Requests/UninstallRequest.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/pop-up-pop-up/analyst/sdk_resolver.php:21
- > PHP Fatal error
Uncaught Error: Interface 'Analyst\\Contracts\\AnalystContract' not found in wp-content/plugins/pop-up-pop-up/analyst/src/Analyst.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Analyst\\Contracts\\CacheContract' not found in wp-content/plugins/pop-up-pop-up/analyst/src/Cache/DatabaseCache.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
Please fix the following attributes:
- Screenshots: These screenshots lack descriptions #1, #2, #3, #4, #5, #6, #7 in pop-up-pop-up/assets to your readme.txt
pop-up-pop-up/pop-up-pop-up.php 92% from 13 tests
The main PHP file in "Pop-up" ver. 1.2.2 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 168 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
Success! There were no dangerous files found in this plugin4,918 lines of code in 107 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 64 | 988 | 1,546 | 3,155 |
CSS | 5 | 136 | 5 | 1,048 |
JavaScript | 5 | 81 | 12 | 369 |
SVG | 33 | 0 | 2 | 346 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 5.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 60.00 |
Average method complexity | 1.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 6 | |
Traits | 0 | |
Classes | 24 | |
▷ Abstract classes | 2 | 8.33% |
▷ Concrete classes | 22 | 91.67% |
▷ Final classes | 0 | 0.00% |
Methods | 199 | |
▷ Static methods | 22 | 11.06% |
▷ Public methods | 165 | 82.91% |
▷ Protected methods | 10 | 5.03% |
▷ Private methods | 24 | 12.06% |
Functions | 36 | |
▷ Named functions | 13 | 36.11% |
▷ Anonymous functions | 23 | 63.89% |
Constants | 11 | |
▷ Global constants | 8 | 72.73% |
▷ Class constants | 3 | 27.27% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
28 PNG files occupy 0.30MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
modules/banner/views/projects/cdp/imgs/big-colored-logo.png | 0.75KB | 0.73KB | ▼ 3.00% |
modules/banner/views/projects/red/imgs/big-colored-logo-rr.png | 8.54KB | 4.02KB | ▼ 52.89% |
modules/banner/views/projects/mpu/imgs/big-colored-logo.png | 2.94KB | 2.92KB | ▼ 0.73% |
modules/banner/views/projects/bmi/imgs/background-images.png | 4.10KB | 4.09KB | 0.07% |
analyst/assets/img/shield_question.png | 22.05KB | 11.19KB | ▼ 49.26% |