79% zelocator

Code Review | Zelocator

WordPress plugin Zelocator scored 79% from 54 tests.

About plugin

  • Plugin page: zelocator
  • Plugin version: 1.1.4
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.9
  • WordPress version: 5.9.2
  • First release: Dec 22, 2016
  • Latest release: Aug 8, 2018
  • Number of updates: 19
  • Update frequency: every 31.2 days
  • Top authors: hitcode (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 626 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▼1.30MB] [CPU: ▼342.44ms] Passed 4 tests

Analyzing server-side resources used by Zelocator
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.15 ▼0.3617.30 ▼32.85
Dashboard /wp-admin3.07 ▼0.3413.70 ▼28.02
Posts /wp-admin/edit.php3.07 ▼0.5713.64 ▼25.23
Add New Post /wp-admin/post-new.php3.07 ▼3.9314.39 ▼1,283.67
Media Library /wp-admin/upload.php3.07 ▼0.2317.28 ▼10.94

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 121 new files
Database: no new tables, 1 new option
New WordPress options
zl1_permalinks_flushed

Browser metrics Passed 4 tests

This is an overview of browser requirements for Zelocator
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,844 ▲9016.18 ▲0.116.50 ▲0.813.11 ▲0.37
Dashboard /wp-admin2,939 ▲816.14 ▼0.04119.22 ▼15.43156.22 ▼8.53
Posts /wp-admin/edit.php2,735 ▲413.24 ▲0.0067.48 ▲3.32148.02 ▲3.38
Add New Post /wp-admin/post-new.php1,748 ▼3022.49 ▲0.92478.29 ▼20.26164.90 ▼7.95
Media Library /wp-admin/upload.php1,742 ▲445.48 ▼0.03151.60 ▼3.19194.69 ▼1.95

Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% 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
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/zelocator/hc3/profiler.php+33
    Array and string offset access syntax with curly braces is deprecated
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • zl1_permalinks_flushed

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files

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 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Tags: Too many tags (22 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

zelocator/zelocator.php 92% from 13 tests

This is the main PHP file of "Zelocator" version 1.1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Domain Path: The domain path folder was not found ("/languages/")

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
No dangerous file extensions were detected10,146 lines of code in 119 files:
LanguageFilesBlank linesComment linesLines of code
PHP1171,8125518,676
CSS110033952
JavaScript111321518

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity8.79
▷ Minimum class complexity1.00
▷ Maximum class complexity80.00
Average method complexity2.91
▷ Minimum method complexity1.00
▷ Maximum method complexity41.00
Code structure
Namespaces0
Interfaces32
Traits0
Classes104
▷ Abstract classes54.81%
▷ Concrete classes9995.19%
▷ Final classes00.00%
Methods770
▷ Static methods172.21%
▷ Public methods72894.55%
▷ Protected methods415.32%
▷ Private methods10.13%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
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
No PNG files were detected