Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.06ms] Passed 4 tests
A check of server-side resources used by WP Pay Per View Divi
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 37.75 ▼1.44 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.16 ▼2.57 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.45 ▼0.25 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 77.07 ▼19.96 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.16 ▲0.60 |
Server storage [IO: ▲0.17MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Pay Per View Divi
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.35 ▼0.38 | 1.63 ▲0.08 | 42.80 ▲3.71 |
Dashboard /wp-admin | 2,195 ▲15 | 5.63 ▼0.04 | 88.38 ▼2.17 | 37.87 ▼9.48 |
Posts /wp-admin/edit.php | 2,103 ▲6 | 2.00 ▲0.06 | 40.56 ▲1.39 | 35.44 ▼1.37 |
Add New Post /wp-admin/post-new.php | 1,533 ▲7 | 18.20 ▼4.87 | 599.83 ▼58.06 | 65.30 ▲8.05 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.22 ▲0.08 | 92.69 ▲0.14 | 40.62 ▼0.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'DiviExtension' not found in wp-content/plugins/wppv-divi/includes/WpPayPerViewDivi.php:3
- > PHP Fatal error
Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/wppv-divi/includes/modules/WPPVVideo/WPPVVideo.php:3
- > PHP Fatal error
Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/wppv-divi/includes/modules/WPPVToolbar/WPPVToolbar.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function home_url() in wp-content/plugins/wppv-divi/wp-pay-per-view-divi.php:33
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5 in wppv-divi/assets to your readme.txt
- Contributors: Plugin contributors not specified
wppv-divi/wp-pay-per-view-divi.php 92% from 13 tests
The primary PHP file in "WP Pay Per View Divi" version 1.0.10 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("wppv-divi.php" instead of "wp-pay-per-view-divi.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
Everything looks great! No dangerous files found in this plugin224 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 45 | 119 | 218 |
CSS | 3 | 0 | 0 | 3 |
JavaScript | 3 | 1 | 1 | 3 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 2.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 6 | 46.15% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
There were not PNG files found in your plugin