84% wunsch-koala-joey-der-wunschlisten-verwalter

Code Review | Wunsch Koala - Joey der Wunschlisten Verwalter

WordPress plugin Wunsch Koala - Joey der Wunschlisten Verwalter scored84%from 54 tests.

About plugin

  • Plugin page: wunsch-koala-joey...
  • Plugin version: 0.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-4.3
  • WordPress version: 6.3.1
  • First release: Oct 6, 2014
  • Latest release: Aug 10, 2015
  • Number of updates: 7
  • Update frequency: every 44.0 days
  • Top authors: JonasBreuer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /941 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼6.13ms] Passed 4 tests

This is a short check of server-side resources used by Wunsch Koala - Joey der Wunschlisten Verwalter
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0543.20 ▲5.08
Dashboard /wp-admin3.37 ▲0.0245.44 ▼16.34
Posts /wp-admin/edit.php3.48 ▲0.1246.95 ▼0.21
Add New Post /wp-admin/post-new.php5.95 ▲0.0688.10 ▼5.66
Media Library /wp-admin/upload.php3.29 ▲0.0633.96 ▼2.30
Wunsch Koala /wp-admin/options-general.php?page=wunsch-koala3.2631.00

Server storage [IO: ▲0.05MB] [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, 7 new options
New WordPress options
can_compress_scripts
wunsch-koala-options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Wunsch Koala - Joey der Wunschlisten Verwalter: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.34 ▼0.011.63 ▼0.1242.53 ▼0.96
Dashboard /wp-admin2,199 ▲255.57 ▼0.0084.50 ▼13.5237.50 ▼9.55
Posts /wp-admin/edit.php2,104 ▲42.01 ▼0.0138.51 ▲2.8735.13 ▲0.45
Add New Post /wp-admin/post-new.php1,538 ▲1218.31 ▼5.27607.40 ▼76.0168.97 ▲17.72
Media Library /wp-admin/upload.php1,401 ▲44.26 ▲0.01101.04 ▼0.6145.41 ▼0.13
Wunsch Koala /wp-admin/options-general.php?page=wunsch-koala8822.0021.8132.07

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wunsch-koala-joey-der-wunschlisten-verwalter/wunsch-koala-settings.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wunsch-koala-joey-der-wunschlisten-verwalter/wunsch-koala-settings.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
8 plugin tags: wnsche, geschenke, wunschliste, weihnachten, hochzeit...

wunsch-koala-joey-der-wunschlisten-verwalter/wunsch-koala.php 92% from 13 tests

The main PHP file in "Wunsch Koala - Joey der Wunschlisten Verwalter" ver. 0.1.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wunsch-koala-joey-der-wunschlisten-verwalter.php" instead of "wunsch-koala.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected168 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP28234168

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity18.00
▷ Minimum class complexity17.00
▷ Maximum class complexity19.00
Average method complexity2.89
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods18
▷ Static methods18100.00%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
PNG images were not found in this plugin