Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Error in wp-content/plugins/popup-in-posts-pages/index.php+244
Uncaught Error: Class 'WP_Plugins_List_Table' not found in wp-content/plugins/popup-in-posts-pages/index.php:244
Stack trace:
#0 wp-includes/class-wp-hook.php(312): {closure}()
#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(720): do_action()
Server metrics [RAM: ▲0.06MB] [CPU: ▼3.78ms] Passed 4 tests
An overview of server-side resources used by Popup in Posts, Pages
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 41.29 ▼0.10 |
Dashboard /wp-admin | 3.37 ▲0.03 | 48.14 ▼10.18 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 47.54 ▲3.98 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 90.92 ▼3.66 |
Media Library /wp-admin/upload.php | 3.29 ▲0.07 | 34.39 ▼1.17 |
Popup in posts /wp-admin/options-general.php?page=pipp_opts_page | 3.26 | 28.61 |
Server storage [IO: ▲0.05MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Popup in Posts, Pages: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 13.23 ▼1.34 | 1.92 ▲0.26 | 43.51 ▲3.80 |
Dashboard /wp-admin | 2,210 ▲18 | 4.88 ▼1.01 | 97.74 ▼6.87 | 44.68 ▼1.16 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.02 ▼0.04 | 42.66 ▲3.70 | 36.92 ▼0.63 |
Add New Post /wp-admin/post-new.php | 6,246 ▲4,718 | 19.25 ▲0.74 | 822.30 ▲180.30 | 51.62 ▲1.31 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.25 ▲0.00 | 98.05 ▼5.49 | 42.93 ▲0.36 |
Popup in posts /wp-admin/options-general.php?page=pipp_opts_page | 818 | 2.07 | 23.85 | 27.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% 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 0% 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
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/popup-in-posts-pages/popup_script.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/popup-in-posts-pages/index.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: pages, content, page, insert, posts...
popup-in-posts-pages/index.php 92% from 13 tests
The primary PHP file in "Popup in Posts, Pages" version 1.2 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("popup-in-posts-pages.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected238 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 55 | 30 | 238 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 21 | |
▷ Named functions | 12 | 57.14% |
▷ Anonymous functions | 9 | 42.86% |
Constants | 10 | |
▷ Global constants | 10 | 100.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
1 PNG file occupies 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
bubble2.png | 36.81KB | 12.07KB | ▼ 67.21% |