78% playing-card-notations-pcn

Code Review | Playing Card Notations

WordPress plugin Playing Card Notations scored78%from 54 tests.

About plugin

  • Plugin page: playing-card-nota...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jul 1, 2020
  • Latest release: Jul 1, 2020
  • Number of updates: 7
  • Update frequency: every 0.6 days
  • Top authors: 13llama (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /691 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼13.29ms] Passed 4 tests

An overview of server-side resources used by Playing Card Notations
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.43 ▼0.0324.16 ▼22.95
Dashboard /wp-admin3.37 ▲0.0650.97 ▼3.57
Posts /wp-admin/edit.php3.42 ▲0.0647.86 ▼4.61
Add New Post /wp-admin/post-new.php5.97 ▲0.0887.49 ▼22.04
Media Library /wp-admin/upload.php3.29 ▲0.0637.67 ▲1.96
Playing Card Notations Settings /wp-admin/themes.php?page=pcards-settings-menu3.3834.09

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Playing Card Notations: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5814.27 ▲0.041.92 ▼0.0937.60 ▼7.20
Dashboard /wp-admin2,216 ▲425.58 ▼0.0887.86 ▼5.8439.80 ▼1.80
Posts /wp-admin/edit.php2,121 ▲212.01 ▲0.0736.80 ▼1.7532.91 ▼1.17
Add New Post /wp-admin/post-new.php1,558 ▲3218.38 ▼4.64617.38 ▼81.8160.67 ▼4.29
Media Library /wp-admin/upload.php1,424 ▲244.15 ▼0.05104.62 ▼4.6443.80 ▼4.86
Playing Card Notations Settings /wp-admin/themes.php?page=pcards-settings-menu1,2151.7223.8466.60

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/themes.php?page=pcards-settings-menu
    • > Notice in wp-content/plugins/playing-card-notations-pcn/playing-card-notations.php+88
    Undefined variable: layout

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
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/playing-card-notations-pcn/playing-card-notations.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
10 plugin tags: board games, blackjack, poker, games, texam holdem...

playing-card-notations-pcn/playing-card-notations.php 92% from 13 tests

Analyzing the main PHP file in "Playing Card Notations" version 1.2
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("playing-card-notations-pcn.php" instead of "playing-card-notations.php")

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
No dangerous file extensions were detected343 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP12211215
CSS111591
Markdown117032
JavaScript1115

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.28
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin