68% api-for-poker-mavens

Code Review | API for Poker Mavens

WordPress plugin API for Poker Mavens scored68%from 54 tests.

About plugin

  • Plugin page: api-for-poker-mavens
  • Plugin version: 0.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-4.8
  • WordPress version: 6.3.1
  • First release: Jun 29, 2017
  • Latest release: Jul 5, 2017
  • Number of updates: 11
  • Update frequency: every 0.6 days
  • Top authors: hillplace (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,292 total downloads


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
PageMemory (MB)CPU Time (ms)
Home /2.96 ▼0.5015.51 ▼21.01
Dashboard /wp-admin3.00 ▼0.3115.86 ▼30.86
Posts /wp-admin/edit.php3.00 ▼0.3617.54 ▼29.95
Add New Post /wp-admin/post-new.php3.00 ▼2.8916.60 ▼71.46
Media Library /wp-admin/upload.php3.00 ▼0.2316.83 ▼18.53
API for Poker Mavens /wp-admin/options-general.php?page=pmapi-plugin-settings3.0017.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

Browser metrics Passed 4 tests

API for Poker Mavens: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲7313.24 ▼0.941.87 ▲0.1743.77 ▼5.94
Dashboard /wp-admin2,212 ▲304.85 ▼1.01102.99 ▼6.8642.77 ▲1.02
Posts /wp-admin/edit.php2,095 ▲62.04 ▲0.0239.95 ▲2.8234.54 ▲0.77
Add New Post /wp-admin/post-new.php1,533 ▲1223.40 ▲0.57675.84 ▲19.8857.49 ▼10.00
Media Library /wp-admin/upload.php1,394 ▲64.26 ▲0.0699.89 ▼5.8443.73 ▼1.80
API for Poker Mavens /wp-admin/options-general.php?page=pmapi-plugin-settings9562.1824.9727.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

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


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: The official readme.txt might help

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:
LanguageFilesBlank linesComment linesLines of code

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 code0.18
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions48100.00%
▷ Anonymous functions00.00%
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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