78% mijnpress-onderhoud

Code Review | MijnPress onderhoud

WordPress plugin MijnPress onderhoud scored 78% from 54 tests.

About plugin

  • Plugin page: mijnpress-onderhoud
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.8.1
  • WordPress version: 6.3.1
  • First release: Jul 4, 2015
  • Latest release: Nov 22, 2021
  • Number of updates: 10
  • Update frequency: every 233.5 days
  • Top authors: ramon fincken (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,718 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.07MB] [CPU: ▼7.14ms] Passed 4 tests

An overview of server-side resources used by MijnPress onderhoud
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0735.64 ▼5.82
Dashboard /wp-admin3.41 ▲0.1143.78 ▼4.59
Posts /wp-admin/edit.php3.46 ▲0.1146.57 ▼2.25
Add New Post /wp-admin/post-new.php5.93 ▲0.0586.09 ▼15.90
Media Library /wp-admin/upload.php3.27 ▲0.0534.84 ▲0.74

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for MijnPress onderhoud
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.41 ▲0.111.63 ▼0.0539.99 ▼0.20
Dashboard /wp-admin2,184 ▼75.74 ▲0.8693.80 ▼12.4941.35 ▲1.59
Posts /wp-admin/edit.php2,087 ▼22.06 ▲0.0542.06 ▲5.5343.42 ▲8.54
Add New Post /wp-admin/post-new.php1,522 ▼2023.28 ▲5.04641.03 ▼11.7255.13 ▼0.00
Media Library /wp-admin/upload.php1,386 ▲14.23 ▲0.06103.34 ▲4.5550.14 ▲6.28

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
The following issues need your attention
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/mijnpress-onderhoud/mijnpress_onderhoud.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function did_action() in wp-content/plugins/mijnpress-onderhoud/vendor/tgmpluginactivation/class-tgm-plugin-activation.php:1910

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)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: security, mijnpress, onderhoud, administration, permissions...

mijnpress-onderhoud/mijnpress_onderhoud.php 92% from 13 tests

This is the main PHP file of "MijnPress onderhoud" version 2.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("mijnpress-onderhoud.php" instead of "mijnpress_onderhoud.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
Success! There were no dangerous files found in this plugin1,785 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP24831,4811,785

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity40.75
▷ Minimum class complexity1.00
▷ Maximum class complexity178.00
Average method complexity4.24
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods98
▷ Static methods99.18%
▷ Public methods7879.59%
▷ Protected methods2020.41%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants240.00%
▷ Class constants360.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin