Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- The plugin did not install without errors
- > Error in wp-content/plugins/layered-pop/layered-pop.php+178
Uncaught Error: Call to undefined function mysql_real_escape_string() in wp-content/plugins/layered-pop/layered-pop.php:178
Stack trace:
#0 wp-includes/class-wp-hook.php(310): lpl_class::install()
#1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(517): WP_Hook->do_action()
#3 wp-admin/includes/plugin.php(693): do_action()
Server metrics [RAM: ▲0.00MB] [CPU: ▼0.62ms] Passed 4 tests
This is a short check of server-side resources used by Layered Pop
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.85 ▼2.80 |
Dashboard /wp-admin | 3.31 ▲0.00 | 49.49 ▲2.29 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.30 ▼3.50 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 106.46 ▲5.00 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 39.01 ▲1.55 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 23 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_lpl_layers |
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Layered Pop
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.20 ▼0.18 | 2.07 ▲0.43 | 43.61 ▼0.14 |
Dashboard /wp-admin | 2,198 ▲21 | 5.65 ▼0.01 | 91.24 ▼2.77 | 44.63 ▲6.01 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.99 ▼0.03 | 41.86 ▲3.98 | 38.63 ▲1.46 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.38 ▲0.27 | 679.78 ▲12.89 | 55.08 ▲3.08 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.15 ▼0.06 | 104.97 ▼1.36 | 48.17 ▲3.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie tables were found after uninstall: 1 table
- wp_lpl_layers
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- 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 no errors were found, this is by no means an exhaustive test
SRP 50% 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 trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/layered-pop/layered-pop.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: pop, pop-up, layered popup, popup
layered-pop/layered-pop.php 92% from 13 tests
"Layered Pop" version 0.11's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 165 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected2,164 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 55 | 15 | 1,257 |
CSS | 3 | 12 | 3 | 560 |
JavaScript | 2 | 11 | 4 | 346 |
HTML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 139.00 |
▷ Minimum class complexity | 139.00 |
▷ Maximum class complexity | 139.00 |
Average method complexity | 6.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 47.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 | 24 | |
▷ Static methods | 1 | 4.17% |
▷ Public methods | 24 | 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 | 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
9 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/delete.png | 0.65KB | 0.67KB | 0.00% |
images/edit.png | 0.68KB | 0.62KB | ▼ 9.99% |
images/tooltip.png | 1.92KB | 1.21KB | ▼ 37.18% |
images/preview.png | 0.51KB | 0.54KB | 0.00% |
images/unblock.png | 0.61KB | 0.55KB | ▼ 8.84% |