84% de-praktijk-index

Code Review | De Praktijk Index

WordPress plugin De Praktijk Index scored84%from 54 tests.

About plugin

  • Plugin page: de-praktijk-index
  • Plugin version: 0.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-3.9
  • WordPress version: 6.3.1
  • First release: Dec 8, 2013
  • Latest release: Apr 28, 2014
  • Number of updates: 3
  • Update frequency: every 47.3 days
  • Top authors: leonhooijer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /663 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

Server-side resources used by De Praktijk Index
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0235.73 ▼4.44
Dashboard /wp-admin3.32 ▲0.0145.37 ▼8.04
Posts /wp-admin/edit.php3.37 ▲0.0149.56 ▲4.07
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.06 ▼4.87
Media Library /wp-admin/upload.php3.24 ▲0.0138.07 ▲3.80

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for De Praktijk Index
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.36 ▼1.091.65 ▼0.5343.31 ▼3.37
Dashboard /wp-admin2,206 ▲185.90 ▲1.01102.73 ▼0.1040.89 ▼2.72
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0635.40 ▼0.4433.29 ▼6.71
Add New Post /wp-admin/post-new.php1,533 ▼323.44 ▲0.24681.38 ▼3.1349.34 ▼4.64
Media Library /wp-admin/upload.php1,385 ▼64.29 ▲0.0495.75 ▼13.5541.23 ▼4.63

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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 items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/de-praktijk-index/de-praktijk-index.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 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
4 plugin tags: bilthoven, hsmr, real time monitoring, de praktijk index

de-praktijk-index/de-praktijk-index.php Passed 13 tests

"De Praktijk Index" version 0.3.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
40 characters long description:
Plugin for De Praktijk Index, Bilthoven.

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
Success! There were no dangerous files found in this plugin19 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP172519

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.08
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
Namespaces0
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%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected