Benchmarks
Plugin footprint 65% 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.09MB] [CPU: ▼5.74ms] Passed 4 tests
Analyzing server-side resources used by Zlick Paywall
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.18 | 43.12 ▼1.41 |
Dashboard /wp-admin | 3.53 ▲0.23 | 53.01 ▼4.21 |
Posts /wp-admin/edit.php | 3.62 ▲0.27 | 51.03 ▲3.87 |
Add New Post /wp-admin/post-new.php | 5.64 ▼0.25 | 83.74 ▼20.66 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 40.06 ▲3.31 |
Zlick Payments /wp-admin/options-general.php?page=zlick-payments-plugin | 3.40 | 35.94 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
It is recommended to fix the following issues
- You have illegally modified 1 file (8.90KB) outside of "wp-content/plugins/zlick-paywall/" and "wp-content/uploads/"
- (new file) .well-known/apple-developer-merchantid-domain-association
Filesystem: 28 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_zlick_subscription |
wp_zlick_articles |
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Zlick Paywall
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.11 ▼0.11 | 1.73 ▼0.11 | 43.97 ▼1.46 |
Dashboard /wp-admin | 2,204 ▲27 | 5.61 ▲0.10 | 91.61 ▲1.49 | 37.80 ▼10.85 |
Posts /wp-admin/edit.php | 2,137 ▲37 | 1.99 ▲0.00 | 34.42 ▼5.36 | 35.89 ▼5.39 |
Add New Post /wp-admin/post-new.php | 6,248 ▲4,722 | 18.61 ▼5.12 | 841.59 ▲144.54 | 60.15 ▼1.07 |
Media Library /wp-admin/upload.php | 1,406 ▲3 | 4.13 ▲0.00 | 93.62 ▼14.42 | 43.47 ▼2.30 |
Zlick Payments /wp-admin/options-general.php?page=zlick-payments-plugin | 854 | 2.12 | 22.93 | 26.56 |
Uninstaller [IO: ▲0.01MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie tables were found after uninstall: 2 tables
- wp_zlick_articles
- wp_zlick_subscription
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- 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
Everything seems fine, however this is by no means 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
Please fix the following
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/zlick-paywall/tests/bootstrap.php
- > /wp-content/plugins/zlick-paywall/public/templates/zlick-widget.php
- > /wp-content/plugins/zlick-paywall/zlick-payments.php
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/zlick-paywall/tests/test-sample.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/zlick-paywall/admin/class-zlick-payments-admin.php:372
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/zlick-paywall/public/shortcodes/zlick-widget.php:79
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: pay-per-post, monetization, paywall, content-monetization, stripe...
zlick-paywall/zlick-payments.php 85% from 13 tests
The main PHP file in "Zlick Paywall" ver. 3.0.2 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("zlick-paywall.php" instead of "zlick-payments.php")
- Description: The description should be shorter than 140 characters (currently 145 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,457 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 247 | 375 | 1,101 |
JavaScript | 3 | 20 | 3 | 186 |
Bourne Shell | 1 | 21 | 11 | 123 |
PO File | 1 | 1 | 0 | 17 |
JSON | 1 | 1 | 0 | 16 |
CSS | 2 | 1 | 1 | 14 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 13.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 2.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 3 | 11.54% |
▷ Public methods | 26 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 37 | |
▷ Named functions | 37 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
There are no PNG files in this plugin