100% wpzoom-shortcodes

Code Review | WPZOOM Shortcodes

WordPress plugin WPZOOM Shortcodes scored 100% from 54 tests.

About plugin

  • Plugin page: wpzoom-shortcodes
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.8
  • WordPress version: 5.9.2
  • First release: Sep 22, 2018
  • Latest release: Jul 22, 2021
  • Number of updates: 16
  • Update frequency: every 64.6 days
  • Top authors: WPZOOM (100%)

Code review

54 tests

User reviews

1 review

Install metrics

3,000+ active / 11,953 total downloads


Plugin footprint Passed 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.10MB] [CPU: ▼298.46ms] Passed 4 tests

A check of server-side resources used by WPZOOM Shortcodes
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.1853.68 ▲0.83
Dashboard /wp-admin3.54 ▲0.1334.09 ▼6.97
Posts /wp-admin/edit.php3.76 ▲0.1242.16 ▲5.51
Add New Post /wp-admin/post-new.php7.01 ▲0.0397.29 ▼1,185.16
Media Library /wp-admin/upload.php3.41 ▲0.1127.02 ▼2.52

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 73 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by WPZOOM Shortcodes
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,917 ▲16316.37 ▲0.3711.00 ▲5.292.55 ▼0.25
Dashboard /wp-admin2,897 ▲366.07 ▼0.10119.30 ▼15.45156.14 ▼2.96
Posts /wp-admin/edit.php2,697 ▲123.26 ▲0.0366.83 ▲4.18144.39 ▲9.11
Add New Post /wp-admin/post-new.php1,665 ▲420.35 ▲3.85476.19 ▲47.47157.23 ▼1.55
Media Library /wp-admin/upload.php1,704 ▲95.53 ▲0.04141.38 ▲4.16186.21 ▼8.21

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test

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


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: icons, columns, buttons, box, wpzoom...

wpzoom-shortcodes/wpzoom-shortcodes.php 92% from 13 tests

The main PHP file in "WPZOOM Shortcodes" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
It is important to 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 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin3,864 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity12.00
▷ Minimum class complexity11.00
▷ Maximum class complexity13.00
Average method complexity2.69
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods538.46%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions45100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
31 compressed PNG files occupy 0.04MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/colorpicker/colorpicker_overlay.png10.11KB8.24KB▼ 18.50%
assets/images/colorpicker/colorpicker_rgb_r.png1.04KB0.77KB▼ 26.17%