90% tc-shv-resultate

Code Review | Plugin Name: Handball SHV Resultate Anbindung

WordPress plugin Plugin Name: Handball SHV Resultate Anbindung scored 90% from 54 tests.

About plugin

  • Plugin page: tc-shv-resultate
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.3-5.3
  • WordPress version: 5.8.1
  • First release: Mar 2, 2019
  • Latest release: Dec 7, 2019
  • Number of updates: 14
  • Update frequency: every 20.0 days
  • Top authors: titaniumcoder (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 330 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.34MB] [CPU: ▼130.99ms] Passed 4 tests

This is a short check of server-side resources used by Plugin Name: Handball SHV Resultate Anbindung
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.13 ▲0.4138.27 ▲16.33
Dashboard /wp-admin3.44 ▲0.3884.45 ▲40.71
Posts /wp-admin/edit.php3.48 ▲0.3747.23 ▲2.97
Add New Post /wp-admin/post-new.php5.73 ▲0.3097.94 ▼536.57
Media Library /wp-admin/upload.php3.31 ▲0.3033.51 ▼6.69
SHV Resultate /wp-admin/options-general.php?page=tc-shv-resultate-options3.2833.14

Server storage [IO: ▲0.08MB] [DB: ▲0.01MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 20 new files
Database: 9 new tables, no new options
New tables
wp_tc_shv_next_games
wp_tc_shv_team
wp_tc_shv_ranking
wp_tc_shv_game
wp_tc_shv_last_results
wp_tc_shv_updates
wp_tc_shv_group
wp_tc_shv_team_games
wp_tc_shv_team_logos

Browser metrics Passed 4 tests

Checking browser requirements for Plugin Name: Handball SHV Resultate Anbindung
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10716.14 ▲0.577.30 ▼0.2448.17 ▼3.04
Dashboard /wp-admin2,987 ▲565.90 ▼0.20136.89 ▼2.61132.13 ▲19.54
Posts /wp-admin/edit.php2,758 ▲192.70 ▲0.0163.85 ▼4.2383.18 ▼14.38
Add New Post /wp-admin/post-new.php1,887 ▲38919.18 ▲2.32373.41 ▲37.57108.38 ▼2.66
Media Library /wp-admin/upload.php1,826 ▲165.01 ▼0.04158.94 ▼4.90124.06 ▲7.02
SHV Resultate /wp-admin/options-general.php?page=tc-shv-resultate-options1,2102.0954.9284.99

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 9 tables in the database
    • wp_tc_shv_next_games
    • wp_tc_shv_updates
    • wp_tc_shv_team
    • wp_tc_shv_last_results
    • wp_tc_shv_team_games
    • wp_tc_shv_ranking
    • wp_tc_shv_game
    • wp_tc_shv_team_logos
    • wp_tc_shv_group

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === Plugin Name: Handball SHV Resultate Anbindung === )
You can look at the official readme.txt

tc-shv-resultate/tc-shv-resultate.php Passed 13 tests

The main PHP file in "Plugin Name: Handball SHV Resultate Anbindung" ver. 1.1.0 adds more information about the plugin and also serves as the entry point for this plugin
63 characters long description:
Aktualisiert die Resultate vom SHV direkt im eigenen Wordpress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin1,683 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP113382641,597
CSS254462
YAML14024

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity19.38
▷ Minimum class complexity1.00
▷ Maximum class complexity81.00
Average method complexity2.93
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods75
▷ Static methods2938.67%
▷ Public methods5168.00%
▷ Protected methods00.00%
▷ Private methods2432.00%
Functions7
▷ Named functions342.86%
▷ Anonymous functions457.14%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
public/images/document-icon.png3.46KB2.21KB▼ 35.93%