90% bauernregeln

Code Review | Bauernregeln

WordPress plugin Bauernregeln scored90%from 54 tests.

About plugin

  • Plugin page: bauernregeln
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.4
  • WordPress version: 6.3.1
  • First release: Oct 14, 2012
  • Latest release: Dec 21, 2015
  • Number of updates: 32
  • Update frequency: every 36.4 days
  • Top authors: rvincent (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

50+ active /2,314 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.07ms] Passed 4 tests

Server-side resources used by Bauernregeln
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.86 ▲2.60
Dashboard /wp-admin3.33 ▼0.0144.51 ▼12.60
Posts /wp-admin/edit.php3.38 ▲0.0347.51 ▲1.27
Add New Post /wp-admin/post-new.php5.91 ▲0.0378.82 ▼12.91
Media Library /wp-admin/upload.php3.26 ▲0.0336.47 ▼0.03
Bauernregeln /wp-admin/options-general.php?page=bauernregeln3.2230.35

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: 1 new table, 8 new options
New tables
wp_bauernregeln
New WordPress options
widget_bauernregeln
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
bauernregeln_db_version
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Bauernregeln
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.04 ▼0.561.70 ▲0.0144.10 ▲3.92
Dashboard /wp-admin2,199 ▲215.54 ▼0.1593.43 ▼7.2636.49 ▼1.96
Posts /wp-admin/edit.php2,104 ▲42.01 ▲0.0238.03 ▲5.4435.43 ▲1.76
Add New Post /wp-admin/post-new.php1,531 ▼623.20 ▲5.31615.65 ▼10.9046.90 ▼25.79
Media Library /wp-admin/upload.php1,395 ▼54.25 ▲0.0498.00 ▼15.7342.65 ▼5.45
Bauernregeln /wp-admin/options-general.php?page=bauernregeln8662.1423.1140.97

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP 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 Passed 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
3 plugin tags: widget, german proverbs, bauernregeln

bauernregeln/bauernregeln.php Passed 13 tests

This is the main PHP file of "Bauernregeln" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
86 characters long description:
Shows a german weather proverb or country saying, called Bauernregel, for every month.

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
Everything looks great! No dangerous files found in this plugin625 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP135144530
PO File1333395

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity10.33
▷ Minimum class complexity7.00
▷ Maximum class complexity15.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin