Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▼5.22ms] Passed 4 tests
An overview of server-side resources used by Pay To Post
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.15 | 41.49 ▲0.71 |
Dashboard /wp-admin | 3.45 ▲0.15 | 48.85 ▼1.18 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 53.99 ▼0.39 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.17 | 89.10 ▼14.63 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 39.85 ▼4.67 |
Pay To Post /wp-admin/options-general.php?page=pay_to_post_menu | 3.39 | 37.14 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 19 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_ptp_paypal_transactions |
wp_ptp_local_transactions |
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Pay To Post
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,880 ▲119 | 13.47 ▼1.15 | 7.82 ▲6.18 | 43.32 ▼0.80 |
Dashboard /wp-admin | 2,203 ▲26 | 5.66 ▼0.02 | 88.35 ▲1.42 | 38.82 ▼4.01 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 2.02 ▼0.03 | 39.38 ▼1.80 | 35.66 ▼5.58 |
Add New Post /wp-admin/post-new.php | 1,533 ▼12 | 17.48 ▼5.57 | 669.02 ▲50.19 | 67.43 ▲13.01 |
Media Library /wp-admin/upload.php | 1,411 ▲11 | 4.16 ▲0.00 | 115.79 ▲1.05 | 48.46 ▲2.18 |
Pay To Post /wp-admin/options-general.php?page=pay_to_post_menu | 1,315 | 2.09 | 26.92 | 34.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The plugin did not uninstall successfully, leaving 2 tables in the database
- wp_ptp_paypal_transactions
- wp_ptp_local_transactions
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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
Almost there! Just fix the following items
- 20× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
require_once(ABS_PATHfunctions/ptp-options.php): failed to open stream: No such file or directory in wp-content/plugins/pay-to-post/functions/ptp-database.php on line 5
- > PHP Warning
require_once(ABS_PATHfunctions/ptp-functions.php): failed to open stream: No such file or directory in wp-content/plugins/pay-to-post/pages/payment-page.php on line 5
- > PHP Warning
Use of undefined constant ABS_PATH - assumed 'ABS_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/pay-to-post/functions/ptp-database.php on line 5
- > PHP Warning
Use of undefined constant ABS_PATH - assumed 'ABS_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/pay-to-post/functions/ptp-options.php on line 5
- > PHP Fatal error
require_once(): Failed opening required 'ABS_PATHfunctions/ptp-functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/pay-to-post/pages/payment-page.php on line 5
- > PHP Warning
Use of undefined constant ABS_PATH - assumed 'ABS_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/pay-to-post/pages/payment-page.php on line 5
- > PHP Warning
Use of undefined constant ABS_PATH - assumed 'ABS_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/pay-to-post/pages/confirmation-page.php on line 5
- > PHP Fatal error
require_once(): Failed opening required 'ABS_PATHfunctions/ptp-options.php' (include_path='.:/usr/share/php') in wp-content/plugins/pay-to-post/functions/ptp-functions.php on line 5
- > PHP Warning
Use of undefined constant ABS_PATH - assumed 'ABS_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/pay-to-post/pages/transactions-page.php on line 5
- > PHP Warning
require_once(ABS_PATHfunctions/ptp-database.php): failed to open stream: No such file or directory in wp-content/plugins/pay-to-post/pages/transactions-page.php on line 5
- > PHP Warning
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 93% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Plugin Name: You should set the name of your plugin on the first line (
=== pay-to-post ===
) - Donate link: Invalid url: "www.paytopost-plugin.com/donate/"
pay-to-post/pay-to-post.php Passed 13 tests
"Pay To Post" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
70 characters long description:
A plugin to allow administrators to charge users for posting to a site
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
It is important to fix the following items
- Do not distribute dangerous files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/pay-to-post/sassbuild.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 229 | 58 | 854 |
JavaScript | 1 | 34 | 15 | 88 |
Sass | 1 | 7 | 2 | 46 |
CSS | 2 | 6 | 1 | 32 |
DOS Batch | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 7.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 2.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 48 | |
▷ Static methods | 22 | 45.83% |
▷ Public methods | 39 | 81.25% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 18.75% |
Functions | 4 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 4 | 100.00% |
Constants | 12 | |
▷ Global constants | 3 | 25.00% |
▷ Class constants | 9 | 75.00% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected