87% wp-poker-tournaments

Code Review | WP Poker Tournaments

WordPress plugin WP Poker Tournaments scored 87% from 54 tests.

About plugin

  • Plugin page: wp-poker-tournaments
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-3.6
  • WordPress version: 5.8.1
  • First release: Dec 2, 2013
  • Latest release: Jan 12, 2014
  • Number of updates: 24
  • Update frequency: every 1.7 days
  • Top authors: Musilek (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active / 1,772 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.18MB] [CPU: ▼170.12ms] Passed 4 tests

A check of server-side resources used by WP Poker Tournaments
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.92 ▲0.2034.31 ▲13.92
Dashboard /wp-admin3.21 ▲0.1545.36 ▼2.85
Posts /wp-admin/edit.php3.30 ▲0.1946.31 ▼1.44
Add New Post /wp-admin/post-new.php5.79 ▲0.3582.91 ▼672.77
Media Library /wp-admin/upload.php3.16 ▲0.1630.17 ▼3.40
WP Pokertournaments /wp-admin/options-general.php?page=wp-pokertournaments3.1426.85

Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 24 new files
Database: no new tables, 2 new options
New WordPress options
pokertournaments_style
halls_update

Browser metrics Passed 4 tests

WP Poker Tournaments: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,793 ▲18716.14 ▲0.4712.25 ▲0.3147.23 ▼2.34
Dashboard /wp-admin2,975 ▲445.87 ▼0.32141.79 ▼27.12107.86 ▼3.14
Posts /wp-admin/edit.php2,744 ▲52.72 ▲0.0269.67 ▼0.7987.18 ▼4.93
Add New Post /wp-admin/post-new.php1,618 ▼5421.60 ▲2.71291.65 ▼118.55104.36 ▼4.85
Media Library /wp-admin/upload.php1,812 ▲55.04 ▲0.02164.34 ▲8.83118.92 ▲0.28
WP Pokertournaments /wp-admin/options-general.php?page=wp-pokertournaments1,3202.3356.1373.11

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=wp-pokertournaments
    • > User deprecated in wp-includes/functions.php+5221
    screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=wp-pokertournaments
    • > User deprecated in wp-includes/functions.php+5221
    get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% 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
The following issues need your attention
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-poker-tournaments/shortcodes/shortcodes.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/wp-poker-tournaments/views/admin.php:81

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
9 plugin tags: poker freeroll, affiliate marketing, seo, poker texas holdem, poker...

wp-poker-tournaments/wp-pokertournaments.php 69% from 13 tests

The entry point to "WP Poker Tournaments" version 1.0.2 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-poker-tournaments.php" instead of "wp-pokertournaments.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 296 characters long)
  • Domain Path: The domain path points to an invalid folder, "/wp-pokertournaments" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin821 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP7227320543
PO File294108220
CSS12248
JavaScript27010

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity9.50
▷ Minimum class complexity6.00
▷ Maximum class complexity13.00
Average method complexity1.77
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods22
▷ Static methods731.82%
▷ Public methods1777.27%
▷ Protected methods00.00%
▷ Private methods522.73%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.11MB with 0.07MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png48.52KB16.43KB▼ 66.14%
assets/screenshot-2.png59.24KB15.19KB▼ 74.36%