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
Install script ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼6.24ms] Passed 4 tests
A check of server-side resources used by Popcorn
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 39.17 ▲1.53 |
Dashboard /wp-admin | 3.39 ▲0.04 | 43.92 ▼14.63 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 45.92 ▲2.15 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 79.19 ▼14.01 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 35.49 ▲4.05 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
POPCORN_enable |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
POPCORN_sel_dis_opt |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Popcorn: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,921 ▲160 | 14.05 ▼0.23 | 7.64 ▲5.92 | 36.20 ▼1.60 |
Dashboard /wp-admin | 2,219 ▲42 | 4.93 ▼0.70 | 88.79 ▲1.34 | 82.39 ▲41.30 |
Posts /wp-admin/edit.php | 2,154 ▲51 | 2.57 ▲0.58 | 37.48 ▼1.02 | 34.21 ▲1.64 |
Add New Post /wp-admin/post-new.php | 1,719 ▲191 | 22.55 ▼0.47 | 700.75 ▲52.00 | 38.98 ▼11.03 |
Media Library /wp-admin/upload.php | 1,446 ▲52 | 4.46 ▲0.27 | 95.77 ▼2.93 | 75.51 ▲32.09 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/popcorn/popcorn.php
- 9× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/popcorn/views/home/question.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/popcorn/views/home/image_only.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/popcorn/views/home/custom_form.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/popcorn/views/admin/dashboard.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/popcorn/views/admin/text_only.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/popcorn/views/home/text_only.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/popcorn/views/admin/question.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/popcorn/views/admin/image_only.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/popcorn/views/admin/custom_form.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Tags: Please delete some tags, you are using 15 tag instead of maximum 10
popcorn/popcorn.php 92% from 13 tests
Analyzing the main PHP file in "Popcorn" version 1.0
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 202 characters long)
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
Success! There were no dangerous files found in this plugin1,750 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 219 | 60 | 782 |
CSS | 3 | 51 | 13 | 392 |
PO File | 1 | 169 | 174 | 362 |
JavaScript | 4 | 51 | 25 | 214 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 43.00 |
▷ Minimum class complexity | 43.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 4.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 11 | 100.00% |
▷ Public methods | 10 | 90.91% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 9.09% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.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
3 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/pop_icon.png | 0.30KB | 0.30KB | 0.00% |
assets/images/wordpress.png | 14.98KB | 15.33KB | 0.00% |
assets/images/close.png | 1.02KB | 0.23KB | ▼ 77.88% |