90% wpzoom-shortcodes

Code Review | WPZOOM Shortcodes

WordPress plugin WPZOOM Shortcodes scored90%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-6.1
  • WordPress version: 6.3.1
  • First release: Sep 22, 2018
  • Latest release: Nov 2, 2022
  • Number of updates: 17
  • Update frequency: every 88.4 days
  • Top authors: WPZOOM (100%)

Code review

54 tests

User reviews

1 review

Install metrics

2,000+ active /13,233 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▲0.74ms] Passed 4 tests

An overview of server-side resources used by WPZOOM Shortcodes
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1241.57 ▼3.47
Dashboard /wp-admin3.42 ▲0.1149.48 ▲0.32
Posts /wp-admin/edit.php3.53 ▲0.1747.98 ▲3.06
Add New Post /wp-admin/post-new.php6.00 ▲0.1192.31 ▲4.15
Media Library /wp-admin/upload.php3.34 ▲0.1134.32 ▲3.05

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 73 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WPZOOM Shortcodes
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,979 ▲20813.99 ▼0.3912.89 ▲10.9646.07 ▲8.60
Dashboard /wp-admin2,217 ▲295.90 ▲0.02106.82 ▲0.9236.91 ▼6.17
Posts /wp-admin/edit.php2,097 ▲112.05 ▼0.0934.78 ▼1.4334.22 ▼1.44
Add New Post /wp-admin/post-new.php1,536 ▲1618.48 ▼4.60638.98 ▲27.5057.71 ▼0.61
Media Library /wp-admin/upload.php1,396 ▲114.34 ▲0.1193.14 ▼10.9043.60 ▲0.35

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The SRP test was a success

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)
No browser issues were found

Optimizations

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: wpzoom, columns, buttons, icons, tabs...

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

The principal PHP file in "WPZOOM Shortcodes" v. 1.0.1 is loaded by WordPress automatically on each request
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 programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin3,864 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript183591051,925
PHP6256116683
SVG100655
CSS55151601

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
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
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods13
▷ Static methods538.46%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions45
▷ Named functions45100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
31 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/shortcodes/ico-download.png3.21KB0.51KB▼ 84.10%
assets/images/colorpicker/colorpicker_overlay.png10.11KB8.24KB▼ 18.50%
assets/images/colorpicker/colorpicker_hsb_h.png0.99KB0.77KB▼ 21.94%
assets/images/shortcodes/green-dot.png0.23KB0.24KB0.00%
assets/images/colorpicker/colorpicker_rgb_r.png1.04KB0.77KB▼ 26.17%