Benchmarks
Plugin footprint 23% 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
Please fix the following installer errors
- Install procedure had errors
- > Warning in wp-content/plugins/wp-tactical-popup/views/class-table-popups.php+91
Declaration of wppt_popup_table::prepare_items($model) should be compatible with WP_List_Table::prepare_items()
Server metrics [RAM: ▼1.91MB] [CPU: ▼60.49ms] Passed 4 tests
Analyzing server-side resources used by WP Tactical Popup
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.87 ▼8.71 |
Dashboard /wp-admin | 2.05 ▼1.30 | 5.46 ▼58.86 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.72 ▼49.40 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.25 ▼103.48 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.58 ▼30.21 |
WP Tactical Popup /wp-admin/admin.php?page=wppt-tld | 2.05 | 5.74 |
Add HTML Popup /wp-admin/admin.php?page=wppt-add-html | 2.05 | 6.24 |
Add Image Popup /wp-admin/admin.php?page=wppt-add-image | 2.05 | 5.88 |
Add Popup /wp-admin/admin.php?page=wppt-add-popup | 2.05 | 6.79 |
Add Email Popup /wp-admin/admin.php?page=wppt-add-email | 2.05 | 4.75 |
Global Settings /wp-admin/admin.php?page=wppt-global | 2.05 | 5.59 |
Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 39 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp__wpptDisplay_Rules |
wp__wpptPopups |
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
wppt-global-options |
Browser metrics Passed 4 tests
WP Tactical Popup: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲69 | 14.29 ▼0.07 | 3.33 ▲1.59 | 40.87 ▼4.33 |
Dashboard /wp-admin | 2,226 ▲46 | 5.63 ▲0.02 | 91.73 ▼5.31 | 36.52 ▼8.76 |
Posts /wp-admin/edit.php | 2,134 ▲34 | 1.96 ▼0.14 | 39.35 ▼1.78 | 36.05 ▼4.11 |
Add New Post /wp-admin/post-new.php | 1,551 ▲25 | 23.05 ▼0.40 | 609.55 ▼61.29 | 54.91 ▼2.97 |
Media Library /wp-admin/upload.php | 1,425 ▲28 | 4.23 ▼0.01 | 103.65 ▲4.31 | 46.35 ▲4.31 |
WP Tactical Popup /wp-admin/admin.php?page=wppt-tld | 1,276 | 3.01 | 44.72 | 33.40 |
Add HTML Popup /wp-admin/admin.php?page=wppt-add-html | 1,200 | 3.02 | 39.43 | 43.73 |
Add Image Popup /wp-admin/admin.php?page=wppt-add-image | 1,223 | 3.17 | 39.95 | 31.94 |
Add Popup /wp-admin/admin.php?page=wppt-add-popup | 1,022 | 3.11 | 37.99 | 60.65 |
Add Email Popup /wp-admin/admin.php?page=wppt-add-email | 1,298 | 3.08 | 37.71 | 26.29 |
Global Settings /wp-admin/admin.php?page=wppt-global | 1,046 | 3.11 | 37.58 | 31.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin cannot be uninstalled
- > Warning in wp-content/plugins/wp-tactical-popup/views/class-table-popups.php+91
Declaration of wppt_popup_table::prepare_items($model) should be compatible with WP_List_Table::prepare_items()
- The plugin did not uninstall successfully, leaving 2 tables in the database
- wp__wpptDisplay_Rules
- wp__wpptPopups
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- wppt-global-options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wppt-global
- > Warning in wp-content/plugins/wp-tactical-popup/views/class-table-popups.php+91
Declaration of wppt_popup_table::prepare_items($model) should be compatible with WP_List_Table::prepare_items()
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 18× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'wpptAdminViewSimple' not found in wp-content/plugins/wp-tactical-popup/views/class-admin-global-settings.php:3
- > PHP Fatal error
Uncaught Error: Class 'wpptModel' not found in wp-content/plugins/wp-tactical-popup/models/class-popup-model.php:6
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-tactical-popup/views/class-table-popups.php on line 5
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-tactical-popup/views/class-table-popups.php on line 5
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-tactical-popup/views/class-table-popups.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'wpptAdminView' not found in wp-content/plugins/wp-tactical-popup/includes/class-admin-view-db.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-tactical-popup/index.php:17
- > PHP Fatal error
Uncaught Error: Class 'wpptAdminView' not found in wp-content/plugins/wp-tactical-popup/includes/class-admin-view-simple.php:2
- > PHP Fatal error
Uncaught Error: Class 'wpptAdminViewSimple' not found in wp-content/plugins/wp-tactical-popup/views/class-add-popup.php:2
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-tactical-popup/views/class-table-popups.php on line 5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
wp-tactical-popup/index.php 85% from 13 tests
The main file in "WP Tactical Popup" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 229 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-tactical-popup.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected5,544 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 670 | 253 | 2,855 |
PHP | 21 | 750 | 233 | 1,984 |
CSS | 3 | 135 | 50 | 705 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 10.95 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 52.00 |
Average method complexity | 2.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 21 | |
▷ Abstract classes | 4 | 19.05% |
▷ Concrete classes | 17 | 80.95% |
▷ Final classes | 0 | 0.00% |
Methods | 147 | |
▷ Static methods | 35 | 23.81% |
▷ Public methods | 131 | 89.12% |
▷ Protected methods | 2 | 1.36% |
▷ Private methods | 14 | 9.52% |
Functions | 2 | |
▷ Named functions | 2 | 100.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
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/modal/close.png | 1.48KB | 1.73KB | 0.00% |
includes/admin-style/img-html.png | 3.83KB | 0.68KB | ▼ 82.17% |
includes/jscolor/hs.png | 2.62KB | 7.54KB | 0.00% |
includes/admin-style/img-mail.png | 6.47KB | 2.21KB | ▼ 65.82% |
includes/jscolor/hv.png | 2.80KB | 7.32KB | 0.00% |