78% makelaarsservice

Code Review | Makelaarsservice

WordPress plugin Makelaarsservice scored 78% from 54 tests.

About plugin

  • Plugin page: makelaarsservice
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6.0-5.4.1
  • WordPress version: 5.8.1
  • First release: Feb 4, 2020
  • Latest release: May 5, 2020
  • Number of updates: 26
  • Update frequency: every 3.5 days
  • Top authors: penthion (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 918 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.30MB] [CPU: ▼146.98ms] Passed 4 tests

Analyzing server-side resources used by Makelaarsservice
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.11 ▲0.3937.71 ▲16.24
Dashboard /wp-admin3.39 ▲0.3356.36 ▲1.71
Posts /wp-admin/edit.php3.45 ▲0.3555.28 ▲5.42
Add New Post /wp-admin/post-new.php5.68 ▲0.25102.77 ▼597.90
Media Library /wp-admin/upload.php3.27 ▲0.2737.66 ▲2.84
Plaats /wp-admin/edit-tags.php?taxonomy=property_city_agent&post_type=estate_agent3.2737.90
Makelaars /wp-admin/edit.php?post_type=estate_agent3.3335.42
Plaats /wp-admin/edit-tags.php?taxonomy=property_city&post_type=estate_property3.2730.98
Makelaarsservice /wp-admin/admin.php?page=makelaarsservice3.2631.92
Nieuw object toevoegen /wp-admin/post-new.php?post_type=estate_property3.4561.33
Instructies /wp-admin/admin.php?page=makelaarsservice-welcome3.2537.93
Nieuwe makelaar toevoegen /wp-admin/post-new.php?post_type=estate_agent3.4454.44
Objecten /wp-admin/edit.php?post_type=estate_property3.3342.64
Categories /wp-admin/edit-tags.php?taxonomy=property_category&post_type=estate_property3.2740.72

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 38 new files
Database: 1 new table, no new options
New tables
wp_pnt_makelaarsservice_tokens

Browser metrics Passed 4 tests

A check of browser resources used by Makelaarsservice
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,944 ▲34816.23 ▲0.6713.98 ▲5.4292.33 ▲41.40
Dashboard /wp-admin3,084 ▲1505.90 ▼0.02147.11 ▼12.11121.07 ▲1.90
Posts /wp-admin/edit.php2,853 ▲1142.69 ▼0.0070.79 ▼1.8093.14 ▲1.36
Add New Post /wp-admin/post-new.php1,757 ▲25718.79 ▲0.04402.68 ▼30.44117.37 ▼3.27
Media Library /wp-admin/upload.php1,921 ▲1145.04 ▲0.05157.71 ▲12.07119.17 ▼5.29
Plaats /wp-admin/edit-tags.php?taxonomy=property_city_agent&post_type=estate_agent1,8532.5272.9689.51
Makelaars /wp-admin/edit.php?post_type=estate_agent1,5172.6365.0482.64
Plaats /wp-admin/edit-tags.php?taxonomy=property_city&post_type=estate_property1,8532.5262.7685.31
Makelaarsservice /wp-admin/admin.php?page=makelaarsservice1,5763.1375.8798.29
Nieuw object toevoegen /wp-admin/post-new.php?post_type=estate_property3,2398.96223.63153.41
Instructies /wp-admin/admin.php?page=makelaarsservice-welcome1,2562.5763.2288.15
Nieuwe makelaar toevoegen /wp-admin/post-new.php?post_type=estate_agent3,0878.89221.00130.05
Objecten /wp-admin/edit.php?post_type=estate_property1,5202.6365.7781.17
Categories /wp-admin/edit-tags.php?taxonomy=property_category&post_type=estate_property1,8532.5166.9285.25

Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 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
  • Zombie tables were found after uninstall: 1 table
    • wp_pnt_makelaarsservice_tokens

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means 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× PHP files output text when accessed directly:
    • > /wp-content/plugins/makelaarsservice/public/partials/makelaarsservice-public-display.php
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/makelaarsservice/admin/partials/makelaarsservice-admin-display.php:36
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/makelaarsservice/admin/partials/makelaarsservice-welcome-display.php:26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/makelaarsservice/public/archive-estate_property.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/makelaarsservice/public/single-estate_property.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === makelaarsservice === )
  • Tags: There were no tags found
You can take inspiration from this readme.txt

makelaarsservice/makelaarsservice.php Passed 13 tests

The primary PHP file in "Makelaarsservice" version 1.0.0 is used by WordPress to initiate all plugin functionality
62 characters long description:
Verbindt uw Makelaarsservice account met uw WordPress website!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected1,482 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP153258531,160
JavaScript354128156
CSS4346145
Markdown113021

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity10.29
▷ Minimum class complexity1.00
▷ Maximum class complexity57.00
Average method complexity2.03
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods63
▷ Static methods23.17%
▷ Public methods5892.06%
▷ Protected methods00.00%
▷ Private methods57.94%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.23MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
(invalid) admin/img/ms-icon.png14.73KB0.00KB▼ 100.00%
public/img/img_verkocht_sides.png28.27KB6.79KB▼ 75.99%
public/img/img_verkocht_transparant.png37.92KB11.89KB▼ 68.65%
public/img/img_verkocht_bg_rood.png82.47KB36.59KB▼ 55.64%
public/img/img_sold_transparent.png69.24KB26.35KB▼ 61.95%