Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.41MB] [CPU: ▼2.12ms] 75% from 4 tests
An overview of server-side resources used by Squeeze Page Toolkit for WordPress
Please fix the following
- CPU: Try to keep total CPU usage under 500.00ms (currently 577.95ms on /wp-admin/edit.php?post_type=squeeze_page&page=SPTK_showPage_Settings)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 13.89 ▲10.39 | 2,032,389.63 ▲2,032,346.59 |
Dashboard /wp-admin | 3.78 ▲0.44 | 54.69 ▼0.80 |
Posts /wp-admin/edit.php | 3.83 ▲0.44 | 53.78 ▼3.43 |
Add New Post /wp-admin/post-new.php | 6.31 ▲0.38 | 92.58 ▼7.06 |
Media Library /wp-admin/upload.php | 3.64 ▲0.37 | 41.66 ▲2.80 |
Squeeze Pages /wp-admin/edit.php?post_type=squeeze_page | 3.75 | 40.56 |
Settings /wp-admin/edit.php?post_type=squeeze_page&page=SPTK_showPage_Settings | 3.69 | 577.95 |
Add New /wp-admin/post-new.php?post_type=squeeze_page | 3.76 | 484.23 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_sptk_page_cache |
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
SPTK_Version |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Squeeze Page Toolkit for WordPress
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,866 ▲105 | 14.17 ▼0.19 | 1.82 ▲0.10 | 41.22 ▼4.96 |
Dashboard /wp-admin | 2,272 ▲98 | 5.60 ▲0.04 | 88.66 ▼8.39 | 44.96 ▲2.96 |
Posts /wp-admin/edit.php | 2,174 ▲71 | 2.03 ▼0.01 | 40.20 ▲1.95 | 39.05 ▲3.71 |
Add New Post /wp-admin/post-new.php | 1,589 ▲58 | 23.19 ▲0.17 | 695.86 ▲39.02 | 54.17 ▲3.23 |
Media Library /wp-admin/upload.php | 1,477 ▲80 | 4.31 ▲0.09 | 106.04 ▲3.06 | 45.93 ▲0.89 |
Squeeze Pages /wp-admin/edit.php?post_type=squeeze_page | 1,135 | 1.98 | 33.03 | 32.29 |
Settings /wp-admin/edit.php?post_type=squeeze_page&page=SPTK_showPage_Settings | 997 | 1.93 | 26.31 | 26.48 |
Add New /wp-admin/post-new.php?post_type=squeeze_page | 1,556 | 2.50 | 49.92 | 61.52 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_sptk_page_cache
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- SPTK_Version
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- 34 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=squeeze_page
- > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
- > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
- 34 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=squeeze_page
- > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
- > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
file_get_contents(http://www.fillyourtaproom.com/wp-json/wp/v2/posts?per_page=10): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known
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
Please fix the following items
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/squeeze-page-toolkit/squeeze-page-toolkit.php:35
- > PHP Fatal error
Uncaught Error: Call to a member function getMessage() on null in wp-content/plugins/squeeze-page-toolkit/api/index.php:32
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/squeeze-page-toolkit/lib/db.inc.php on line 21
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/squeeze-page-toolkit/lib/db.inc.php on line 21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: landing pages, squeeze pages, squeeze page toolkit, opt-in boxes
squeeze-page-toolkit/squeeze-page-toolkit.php Passed 13 tests
The primary PHP file in "Squeeze Page Toolkit for WordPress" version 1.20 is used by WordPress to initiate all plugin functionality
130 characters long description:
The official plugin for the Squeeze Page Toolkit for WordPress, allowing you to show your squeeze pages on your WordPress website.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin2,407 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 874 | 1,790 | 2,378 |
CSS | 1 | 6 | 1 | 29 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 45.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 160.00 |
Average method complexity | 4.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 60.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 94 | |
▷ Static methods | 1 | 1.06% |
▷ Public methods | 81 | 86.17% |
▷ Protected methods | 11 | 11.70% |
▷ Private methods | 2 | 2.13% |
Functions | 42 | |
▷ Named functions | 42 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin