Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.35MB] [CPU: ▲6.43ms] Passed 4 tests
An overview of server-side resources used by HandyPlugins PaddlePress - Paddle Integration for WordPress
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.82 ▲0.35 | 44.50 ▲1.40 |
Dashboard /wp-admin | 3.65 ▲0.34 | 54.98 ▲2.42 |
Posts /wp-admin/edit.php | 3.76 ▲0.41 | 59.26 ▲12.00 |
Add New Post /wp-admin/post-new.php | 6.25 ▲0.36 | 101.75 ▲10.32 |
Media Library /wp-admin/upload.php | 3.57 ▲0.34 | 44.28 ▲11.59 |
Plans /wp-admin/admin.php?page=paddlepress-plans | 3.55 | 273.64 |
Settings /wp-admin/admin.php?page=handyplugins-paddlepress | 3.54 | 42.41 |
Products /wp-admin/admin.php?page=paddlepress-products | 3.55 | 230.58 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 32 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
paddlepress_free_db_version |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for HandyPlugins PaddlePress - Paddle Integration for WordPress
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲40 | 14.33 ▲0.11 | 1.60 ▼0.56 | 37.19 ▼5.38 |
Dashboard /wp-admin | 2,235 ▲64 | 5.63 ▼0.02 | 93.11 ▼5.93 | 46.57 ▼2.70 |
Posts /wp-admin/edit.php | 2,137 ▲37 | 2.03 ▲0.09 | 40.23 ▲2.98 | 36.08 ▲2.29 |
Add New Post /wp-admin/post-new.php | 1,557 ▲31 | 23.29 ▲0.10 | 611.33 ▼139.48 | 57.25 ▲12.86 |
Media Library /wp-admin/upload.php | 1,440 ▲40 | 4.27 ▲0.07 | 100.44 ▼0.42 | 43.87 ▼0.50 |
Plans /wp-admin/admin.php?page=paddlepress-plans | 825 | 1.77 | 24.76 | 27.23 |
Settings /wp-admin/admin.php?page=handyplugins-paddlepress | 1,351 | 1.96 | 34.06 | 40.15 |
Products /wp-admin/admin.php?page=paddlepress-products | 822 | 1.75 | 24.72 | 26.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- paddlepress_free_db_version
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/handyplugins-paddlepress/plugin.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: paddle, membership, payment, software-licensing, paddlepress
handyplugins-paddlepress/plugin.php 92% from 13 tests
The primary PHP file in "HandyPlugins PaddlePress - Paddle Integration for WordPress" version 2.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("handyplugins-paddlepress.php" instead of "plugin.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
No dangerous file extensions were detected1,498 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 288 | 415 | 1,388 |
CSS | 12 | 26 | 33 | 82 |
JavaScript | 4 | 5 | 2 | 28 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 3.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 1 | 100.00% |
Methods | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 60.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 40.00% |
Functions | 49 | |
▷ Named functions | 46 | 93.88% |
▷ Anonymous functions | 3 | 6.12% |
Constants | 44 | |
▷ Global constants | 6 | 13.64% |
▷ Class constants | 38 | 86.36% |
▷ Public constants | 38 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin