84% meinturnierplande-widget-viewer

Code Review | MeinTurnierplan.de Widget Viewer

WordPress plugin MeinTurnierplan.de Widget Viewer scored 84% from 54 tests.

About plugin

  • Plugin page: meinturnierplande...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5.0-4.6
  • WordPress version: 6.3.1
  • First release: Sep 22, 2016
  • Latest release: Jul 11, 2019
  • Number of updates: 9
  • Update frequency: every 114.6 days
  • Top authors: meinturnierplan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 2,164 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.12ms] Passed 4 tests

Analyzing server-side resources used by MeinTurnierplan.de Widget Viewer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.06 ▼5.69
Dashboard /wp-admin3.31 ▲0.0146.53 ▼2.27
Posts /wp-admin/edit.php3.36 ▲0.0049.43 ▲2.61
Add New Post /wp-admin/post-new.php5.89 ▲0.0079.01 ▼18.72
Media Library /wp-admin/upload.php3.23 ▲0.0033.94 ▼1.79

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by MeinTurnierplan.de Widget Viewer
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲7013.68 ▼0.701.81 ▼0.3341.42 ▼12.47
Dashboard /wp-admin2,206 ▲144.85 ▼0.06106.82 ▲3.8640.23 ▼5.07
Posts /wp-admin/edit.php2,092 ▲32.00 ▼0.0038.97 ▼2.1334.01 ▼1.84
Add New Post /wp-admin/post-new.php1,541 ▲823.31 ▲0.06600.33 ▼70.5645.18 ▼7.25
Media Library /wp-admin/upload.php1,382 ▼94.19 ▼0.0793.31 ▼7.3642.64 ▼3.06

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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 fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function mtp\\add_action() in wp-content/plugins/meinturnierplande-widget-viewer/meinturnierplan.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

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: football, tournaments, sports, event, sport...

meinturnierplande-widget-viewer/meinturnierplan.php 92% from 13 tests

Analyzing the main PHP file in "MeinTurnierplan.de Widget Viewer" version 1.1
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("meinturnierplande-widget-viewer.php" instead of "meinturnierplan.php")

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
No dangerous file extensions were detected132 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP11951115
CSS22017

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.79
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
Namespaces1
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin