Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼5.99ms] Passed 4 tests
An overview of server-side resources used by Dots Paywall
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 37.47 ▼8.82 |
Dashboard /wp-admin | 3.34 ▲0.03 | 51.79 ▲1.84 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 49.27 ▼3.90 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 85.78 ▼11.53 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 41.03 ▲0.28 |
Dots Paywall /wp-admin/options-general.php?page=dotsPaywall | 3.22 | 32.14 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
lightbox_showpaywalltext |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
dots_username |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Dots Paywall
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲33 | 14.29 ▼0.45 | 2.13 ▲0.09 | 42.88 ▼5.33 |
Dashboard /wp-admin | 2,228 ▲25 | 5.83 ▼0.02 | 101.46 ▼9.91 | 37.72 ▼2.26 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.99 ▼0.01 | 39.07 ▼0.08 | 37.52 ▲2.73 |
Add New Post /wp-admin/post-new.php | 1,548 ▲17 | 23.26 ▲0.21 | 645.98 ▲1.14 | 60.02 ▼6.28 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.23 ▼0.00 | 110.53 ▲0.41 | 48.23 ▼1.91 |
Dots Paywall /wp-admin/options-general.php?page=dotsPaywall | 800 | 2.02 | 23.34 | 26.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 8 options in the database
- theysaidso_admin_options
- db_upgraded
- dots_username
- widget_theysaidso_widget
- lightbox_showpaywalltext
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/dots-paywall/dotsPaywall.php:79
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
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
2 plugin tags: monetization, paywall
dots-paywall/dotsPaywall.php 92% from 13 tests
Analyzing the main PHP file in "Dots Paywall" version 1.0.0
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("dots-paywall.php" instead of "dotsPaywall.php")
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 plugin137 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 32 | 16 | 136 |
JavaScript | 1 | 0 | 1 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
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 | 6 | |
▷ Named functions | 6 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin