Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▼1.98MB] [CPU: ▼342.86ms] Passed 4 tests
Analyzing server-side resources used by Integration Plugin for Pagely Resellers
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.36 ▼1.15 | 16.66 ▼36.60 |
Dashboard /wp-admin | 2.41 ▼0.99 | 10.34 ▼22.25 |
Posts /wp-admin/edit.php | 2.41 ▼1.22 | 10.00 ▼39.34 |
Add New Post /wp-admin/post-new.php | 2.41 ▼4.56 | 10.05 ▼1,273.24 |
Media Library /wp-admin/upload.php | 2.41 ▼0.88 | 10.23 ▼21.56 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 1 new option
New WordPress options |
---|
pp_api |
Browser metrics Passed 4 tests
Integration Plugin for Pagely Resellers: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,695 ▼49 | 13.98 ▼1.78 | 6.17 ▼0.70 | 2.62 ▲0.64 |
Dashboard /wp-admin | 2,898 ▲37 | 6.01 ▼0.15 | 119.33 ▼15.92 | 163.95 ▼3.78 |
Posts /wp-admin/edit.php | 2,705 ▲14 | 3.24 ▲0.01 | 67.89 ▼25.40 | 146.94 ▼0.67 |
Add New Post /wp-admin/post-new.php | 1,638 ▼122 | 21.07 ▼0.93 | 433.01 ▼51.67 | 164.17 ▲3.60 |
Media Library /wp-admin/upload.php | 1,718 ▲20 | 5.54 ▲0.07 | 141.57 ▼5.80 | 195.24 ▲7.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Uninstall procedure had uncaught errors
- > Warning in wp-content/plugins/pagely-reseller-management/partner-api.php+101
Use of undefined constant PAGELY_PARTNER_API_SECRET - assumed 'PAGELY_PARTNER_API_SECRET' (this will throw an Error in a future version of PHP)
- This plugin does not fully uninstall, leaving 1 option in the database
- pp_api
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 4× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/pagely-reseller-management/views/offline.php
- > /wp-content/plugins/pagely-reseller-management/views/misfire.php
- > /wp-content/plugins/pagely-reseller-management/views/order_step2.php
- > /wp-content/plugins/pagely-reseller-management/views/complete.php
- 9× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/pagely-reseller-management/views/order_step3.php:6
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/pagely-reseller-management/views/order-form.php:41
- > PHP Warning
Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/pagely-reseller-management/partner-api.php on line 63
- > PHP Warning
Use of undefined constant PP_PLUGIN_ASSETS - assumed 'PP_PLUGIN_ASSETS' (this will throw an Error in a future version of PHP) in wp-content/plugins/pagely-reseller-management/views/options-page.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'PagelyApi' not found in wp-content/plugins/pagely-reseller-management/inc/options_page.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/pagely-reseller-management/partner-api.php:66
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/pagely-reseller-management/views/options-page.php:4
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/pagely-reseller-management/views/cart.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/pagely-reseller-management/views/order_step1.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== pagely-reseller-management ===
)
pagely-reseller-management/partner-api.php 92% from 13 tests
The main PHP file in "Integration Plugin for Pagely Resellers" ver. 3.3 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: The principal plugin file should be the same as the plugin slug ("pagely-reseller-management.php" instead of "partner-api.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,810 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 388 | 464 | 1,224 |
JavaScript | 3 | 43 | 162 | 518 |
CSS | 1 | 10 | 9 | 68 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 69.00 |
▷ Minimum class complexity | 43.00 |
▷ Maximum class complexity | 95.00 |
Average method complexity | 3.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 53 | |
▷ Static methods | 1 | 1.89% |
▷ Public methods | 53 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
5 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/gfx/error.png | 0.65KB | 0.68KB | 0.00% |
assets/gfx/paypal.png | 3.03KB | 2.10KB | ▼ 30.66% |
assets/gfx/pagely-api-small.png | 6.20KB | 3.59KB | ▼ 42.17% |
assets/gfx/stripe_bg.png | 0.55KB | 0.34KB | ▼ 37.72% |
assets/gfx/accept.png | 0.92KB | 0.81KB | ▼ 12.11% |