90% thuisbezorgd-beoordelingen

Code Review | Thuisbezorgd Beoordelingen

WordPress plugin Thuisbezorgd Beoordelingen scored90%from 54 tests.

About plugin

  • Plugin page: thuisbezorgd-beoo...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jun 16, 2017
  • Latest release: Jun 16, 2017
  • Number of updates: 7
  • Update frequency: every 0.3 days
  • Top authors: musa11971 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /651 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
This plugin's installer ran successfully

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

An overview of server-side resources used by Thuisbezorgd Beoordelingen
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.10 ▼8.39
Dashboard /wp-admin3.32 ▲0.0247.28 ▼0.13
Posts /wp-admin/edit.php3.43 ▲0.0850.13 ▼0.51
Add New Post /wp-admin/post-new.php5.90 ▲0.0193.37 ▼3.65
Media Library /wp-admin/upload.php3.24 ▲0.0136.79 ▲3.20

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Thuisbezorgd Beoordelingen
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.29 ▼0.341.58 ▲0.0541.28 ▼1.13
Dashboard /wp-admin2,208 ▲315.62 ▼0.0689.49 ▲2.9741.00 ▲3.72
Posts /wp-admin/edit.php2,116 ▲162.02 ▲0.0039.48 ▲3.6536.58 ▲5.20
Add New Post /wp-admin/post-new.php1,539 ▲1323.07 ▼0.25683.13 ▼16.0758.68 ▲1.74
Media Library /wp-admin/upload.php1,416 ▲134.17 ▼0.1292.61 ▼1.1644.12 ▼1.27

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: thuisbezorgd, takeaway, reviews, restaurant, beoordelingen

thuisbezorgd-beoordelingen/thuisbezorgd-beoordelingen.php Passed 13 tests

"Thuisbezorgd Beoordelingen" version 2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
82 characters long description:
Laat de Thuisbezorgd beoordelingen van uw restaurant zien op uw Wordpress website.

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
Everything looks great! No dangerous files found in this plugin1,685 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP32713121,584
CSS32015101

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity110.00
▷ Minimum class complexity1.00
▷ Maximum class complexity198.00
Average method complexity4.80
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods86
▷ Static methods11.16%
▷ Public methods7081.40%
▷ Protected methods1618.60%
▷ Private methods00.00%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants21
▷ Global constants21100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.29MB with 0.14MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/thuisbezorgd_header.png146.08KB72.11KB▼ 50.64%
img/star-rating-sprite.png0.94KB0.77KB▼ 17.86%
img/donate.png68.86KB20.25KB▼ 70.58%
img/plugin_logo.png82.99KB38.08KB▼ 54.11%