Benchmarks
Plugin footprint 57% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- This plugin did not install gracefully
- > Notice in wp-content/plugins/post-pay-counter/classes/ppc_install_functions_class.php+253
Undefined variable: errors
Server metrics [RAM: ▲1.20MB] [CPU: ▼0.45ms] 75% from 4 tests
A check of server-side resources used by Post Pay Counter
Please have a look at the following items
- CPU: Try to keep total CPU usage under 500.00ms (currently 562.26ms on /wp-admin/admin.php?page=ppc-system-info)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.66 ▲1.19 | 47.22 ▲7.95 |
Dashboard /wp-admin | 4.51 ▲1.20 | 55.03 ▲4.56 |
Posts /wp-admin/edit.php | 4.56 ▲1.20 | 54.06 ▼0.62 |
Add New Post /wp-admin/post-new.php | 7.09 ▲1.20 | 92.95 ▼11.55 |
Media Library /wp-admin/upload.php | 4.43 ▲1.20 | 45.73 ▲5.82 |
Stats /wp-admin/admin.php?page=ppc-stats | 4.48 | 416.26 |
Options /wp-admin/admin.php?page=ppc-options | 4.27 | 36.29 |
Addons /wp-admin/admin.php?page=ppc-addons | 4.44 | 68.09 |
Welcome to Post Pay Counter /wp-admin/index.php?page=ppc-about | 4.34 | 41.13 |
Post Pay Counter Changelog /wp-admin/index.php?page=ppc-changelog | 4.46 | 42.94 |
System Info /wp-admin/admin.php?page=ppc-system-info | 4.70 | 562.26 |
Server storage [IO: ▲2.20MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 103 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
ppc_current_version |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Post Pay Counter
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲88 | 13.56 ▼0.86 | 1.71 ▼0.05 | 39.84 ▼0.62 |
Dashboard /wp-admin | 2,240 ▲58 | 5.82 ▼0.07 | 97.46 ▼11.96 | 90.43 ▲50.72 |
Posts /wp-admin/edit.php | 2,126 ▲37 | 2.01 ▼0.15 | 51.61 ▲14.33 | 44.45 ▲11.51 |
Add New Post /wp-admin/post-new.php | 1,542 ▲23 | 23.22 ▲0.23 | 687.39 ▲2.72 | 75.51 ▲4.24 |
Media Library /wp-admin/upload.php | 1,425 ▲37 | 4.19 ▲0.04 | 107.20 ▼5.31 | 51.05 ▲4.49 |
Stats /wp-admin/admin.php?page=ppc-stats | 1,001 | 1.90 | 30.96 | 34.83 |
Options /wp-admin/admin.php?page=ppc-options | 2,658 | 3.00 | 60.60 | 75.94 |
Addons /wp-admin/admin.php?page=ppc-addons | 1,067 | 1.86 | 25.72 | 30.42 |
Welcome to Post Pay Counter /wp-admin/index.php?page=ppc-about | 998 | 1.85 | 25.40 | 43.83 |
Post Pay Counter Changelog /wp-admin/index.php?page=ppc-changelog | 2,239 | 1.73 | 26.93 | 53.71 |
System Info /wp-admin/admin.php?page=ppc-system-info | 859 | 1.89 | 27.06 | 27.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=ppc-options
- > Notice in wp-content/plugins/post-pay-counter/post-pay-counter.php+340
Undefined index: userid
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/post-pay-counter/post-pay-counter.php
- 8× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/post-pay-counter/classes/ppc_wp_list_table_authors_class.php on line 13
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/post-pay-counter/classes/ppc_wp_list_table_posts_class.php on line 13
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/post-pay-counter/classes/ppc_wp_list_table_posts_class.php on line 13
- > PHP Fatal error
Uncaught Error: Class 'WP_CLI' not found in wp-content/plugins/post-pay-counter/wp-cli.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/post-pay-counter/classes/ppc_visits_trackers.php:10
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/post-pay-counter/classes/ppc_wp_list_table_authors_class.php on line 13
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/post-pay-counter/classes/ppc_wp_list_table_authors_class.php on line 13
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/post-pay-counter/classes/ppc_wp_list_table_posts_class.php on line 13
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: earnings, authors, revenue sharing, payments, stats
post-pay-counter/post-pay-counter.php Passed 13 tests
This is the main PHP file of "Post Pay Counter" version 2.789, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
107 characters long description:
Easily handle authors payments on a multi-author blog by computing posts pay basing on admin defined rules.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected20,601 lines of code in 57 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 14 | 4,204 | 4,883 | 14,919 |
PHP | 26 | 1,337 | 2,212 | 4,387 |
CSS | 13 | 73 | 138 | 935 |
JavaScript | 4 | 69 | 58 | 360 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 33.35 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 99.00 |
Average method complexity | 5.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 50.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 23 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 23 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 157 | |
▷ Static methods | 105 | 66.88% |
▷ Public methods | 157 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 19 | |
▷ Named functions | 17 | 89.47% |
▷ Anonymous functions | 2 | 10.53% |
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
29 PNG files occupy 0.28MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
style/images/minus.png | 1.24KB | 1.43KB | 0.00% |
style/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png | 0.25KB | 0.15KB | ▼ 37.45% |
style/images/screenshots/pro_stats.png | 14.68KB | 5.83KB | ▼ 60.29% |
style/images/info.png | 0.79KB | 0.81KB | 0.00% |
style/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png | 0.12KB | 0.16KB | 0.00% |