84% veeltebeleven-nl

Code Review | Veeltebeleven Widget

WordPress plugin Veeltebeleven Widget scored84%from 54 tests.

About plugin

  • Plugin page: veeltebeleven-nl
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7
  • WordPress version: 6.3.1
  • First release: May 7, 2018
  • Latest release: May 7, 2018
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: monkeysoft (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /438 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.55ms] Passed 4 tests

An overview of server-side resources used by Veeltebeleven Widget
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.75 ▲0.0245.15 ▲1.43
Dashboard /wp-admin3.58 ▲0.0251.43 ▼1.27
Posts /wp-admin/edit.php3.70 ▲0.0253.50 ▲5.75
Add New Post /wp-admin/post-new.php6.16 ▲0.0287.84 ▼21.14
Media Library /wp-admin/upload.php3.50 ▲0.0237.93 ▼1.21

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_veeltebeleven_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Veeltebeleven Widget
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.26 ▲0.021.77 ▲0.0940.79 ▼0.86
Dashboard /wp-admin2,195 ▲185.60 ▼0.1092.63 ▲1.6240.92 ▼2.96
Posts /wp-admin/edit.php2,100 ▼32.01 ▲0.0134.81 ▼0.9535.30 ▼1.80
Add New Post /wp-admin/post-new.php1,526 ▼2417.72 ▼5.45600.96 ▼72.6855.27 ▼4.76
Media Library /wp-admin/upload.php1,400 ▲34.21 ▼0.0399.02 ▼13.7445.46 ▼3.86

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_theysaidso_widget
    • widget_veeltebeleven_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/veeltebeleven-nl/veeltebeleven-widget.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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
2 plugin tags: widget, veeltebeleven

veeltebeleven-nl/veeltebeleven-widget.php 92% from 13 tests

The main file in "Veeltebeleven Widget" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("veeltebeleven-nl.php" instead of "veeltebeleven-widget.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin70 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP191346
Markdown112024

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.09
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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 were not PNG files found in your plugin