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.01MB] [CPU: ▼38.32ms] Passed 4 tests
Server-side resources used by API for Poker Mavens
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.96 ▼0.50 | 15.51 ▼21.01 |
Dashboard /wp-admin | 3.00 ▼0.31 | 15.86 ▼30.86 |
Posts /wp-admin/edit.php | 3.00 ▼0.36 | 17.54 ▼29.95 |
Add New Post /wp-admin/post-new.php | 3.00 ▼2.89 | 16.60 ▼71.46 |
Media Library /wp-admin/upload.php | 3.00 ▼0.23 | 16.83 ▼18.53 |
API for Poker Mavens /wp-admin/options-general.php?page=pmapi-plugin-settings | 3.00 | 17.29 |
Server storage [IO: ▲0.51MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
API for Poker Mavens: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲73 | 13.24 ▼0.94 | 1.87 ▲0.17 | 43.77 ▼5.94 |
Dashboard /wp-admin | 2,212 ▲30 | 4.85 ▼1.01 | 102.99 ▼6.86 | 42.77 ▲1.02 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.04 ▲0.02 | 39.95 ▲2.82 | 34.54 ▲0.77 |
Add New Post /wp-admin/post-new.php | 1,533 ▲12 | 23.40 ▲0.57 | 675.84 ▲19.88 | 57.49 ▼10.00 |
Media Library /wp-admin/upload.php | 1,394 ▲6 | 4.26 ▲0.06 | 99.89 ▼5.84 | 43.73 ▼1.80 |
API for Poker Mavens /wp-admin/options-general.php?page=pmapi-plugin-settings | 956 | 2.18 | 24.97 | 27.42 |
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
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/api-for-poker-mavens/include/pmpage.php+93
Undefined index: pmpage
- Zombie WordPress options were found after uninstall: 6 options
- 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 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=pmapi-plugin-settings
- > Notice in wp-content/plugins/api-for-poker-mavens/include/pmpage.php+140
Undefined index: pmpage
SRP 50% 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 take a closer look at the following
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/api-for-poker-mavens/include/css.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/api-for-poker-mavens/include/adminsetup.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/api-for-poker-mavens/include/pmpage.php:166
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/api-for-poker-mavens/api-for-poker-mavens.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/api-for-poker-mavens/include/shortcodes.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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: Add descriptions for screenshots #3, #4 in api-for-poker-mavens/assets to your readme.txt
api-for-poker-mavens/api-for-poker-mavens.php Passed 13 tests
"API for Poker Mavens" version 0.1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
59 characters long description:
This adds Poker Mavens API features to a Wordpress website.
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 plugin1,273 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 74 | 19 | 1,228 |
CSS | 1 | 3 | 0 | 45 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 48 | |
▷ Named functions | 48 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin