Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼6.22ms] Passed 4 tests
A check of server-side resources used by Excalibur Paywall
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 40.04 ▼4.15 |
Dashboard /wp-admin | 3.36 ▲0.01 | 49.29 ▼18.42 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 52.33 ▲0.24 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 98.31 ▼2.54 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 41.38 ▲7.63 |
Server storage [IO: ▲1.00MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Excalibur Paywall
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,972 ▲186 | 13.81 ▼0.60 | 16.47 ▲14.57 | 41.22 ▲0.00 |
Dashboard /wp-admin | 2,220 ▲46 | 5.65 ▲0.04 | 96.11 ▲1.30 | 45.87 ▼0.28 |
Posts /wp-admin/edit.php | 2,125 ▲28 | 2.01 ▼0.01 | 42.70 ▲5.56 | 37.74 ▲3.29 |
Add New Post /wp-admin/post-new.php | 1,698 ▲153 | 22.13 ▼1.01 | 664.88 ▼16.05 | 61.32 ▲8.55 |
Media Library /wp-admin/upload.php | 1,422 ▲22 | 4.21 ▼0.08 | 98.32 ▼16.17 | 48.54 ▼1.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/excalibur-paywall/public/partials/excalibur-pay-wall-public-display.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/excalibur-paywall/admin/partials/excalibur-pay-wall-admin-display.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Screenshots: Please add images for these screenshots: #1 (Example of an offer), #2 (Screenshot of Excalibur Lightbox), #3 (Screenshot of price listing to customers), #4 (Screenshot of the configuration module), #5 (Screenshot of the customer service module where you can look up customers and assist them.)
excalibur-paywall/excalibur-pay-wall.php 85% from 13 tests
The main PHP file in "Excalibur Paywall" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("excalibur-paywall.php" instead of "excalibur-pay-wall.php")
- Text Domain: The text domain should only use lowercase characters and dashes
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
Success! There were no dangerous files found in this plugin234 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 122 | 530 | 200 |
JavaScript | 3 | 4 | 54 | 33 |
CSS | 3 | 0 | 13 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.07 |
Average class complexity | 1.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 26 | |
▷ Static methods | 2 | 7.69% |
▷ Public methods | 21 | 80.77% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 19.23% |
Functions | 3 | |
▷ Named functions | 3 | 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 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.83MB with 0.51MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.PNG | 619.75KB | 139.90KB | ▼ 77.43% |
screenshot-5.png | 29.16KB | 13.34KB | ▼ 54.25% |
screenshot-1.png | 160.96KB | 45.55KB | ▼ 71.70% |
screenshot-4.png | 18.49KB | 8.29KB | ▼ 55.14% |
screenshot-3.png | 23.15KB | 11.94KB | ▼ 48.43% |