94% woo-framework-shortcodes

Code Review | Woo Framework Shortcodes

WordPress plugin Woo Framework Shortcodes scored 94% from 54 tests.

About plugin

  • Plugin page: woo-framework-sho...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.0-4.4.1
  • WordPress version: 5.8.1
  • First release: Jan 30, 2016
  • Latest release: Feb 28, 2016
  • Number of updates: 4
  • Update frequency: every 7.5 days
  • Top authors: anandamd (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active / 2,024 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.31MB] [CPU: ▼149.17ms] Passed 4 tests

An overview of server-side resources used by Woo Framework Shortcodes
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.12 ▲0.2841.61 ▲6.67
Dashboard /wp-admin3.43 ▲0.3748.46 ▲8.10
Posts /wp-admin/edit.php3.47 ▲0.3743.52 ▼10.39
Add New Post /wp-admin/post-new.php5.73 ▲0.3090.73 ▼587.73
Media Library /wp-admin/upload.php3.30 ▲0.3033.49 ▼5.21

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 214 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Woo Framework Shortcodes
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,690 ▲9416.17 ▲0.5214.82 ▲6.3743.88 ▼5.98
Dashboard /wp-admin2,970 ▲395.90 ▼0.05142.07 ▼6.54110.58 ▲7.64
Posts /wp-admin/edit.php2,739 ▼02.73 ▲0.0170.36 ▼15.4094.76 ▲0.46
Add New Post /wp-admin/post-new.php1,553 ▼13018.69 ▼0.00367.30 ▼18.47125.66 ▲5.16
Media Library /wp-admin/upload.php1,807 ▼35.00 ▼0.04162.02 ▲1.73109.80 ▼3.35

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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 following issues need your attention
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/woo-framework-shortcodes/functions/js/shortcode-generator/dialog.php
    • > /wp-content/plugins/woo-framework-shortcodes/functions/js/shortcode-generator/js/dialog-js.php

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 Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: shortcodes, woo-framework

woo-framework-shortcodes/woo-framework-shortcodes.php Passed 13 tests

The principal PHP file in "Woo Framework Shortcodes" v. 1.0.0 is loaded by WordPress automatically on each request
126 characters long description:
Easily switch to a non WooThemes theme but retain the framework shortcodes. Use shortcodes from WooFramework in another theme.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected7,759 lines of code in 66 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript433871413,581
PHP79285752,009
CSS101051741,610
LESS56917547
SVG10012

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.38
Average class complexity7.50
▷ Minimum class complexity3.00
▷ Maximum class complexity12.00
Average method complexity2.30
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions74
▷ Named functions74100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
133 PNG files occupy 0.13MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
functions/images/btn-tumblog-link.png1.17KB1.24KB0.00%
functions/images/ico-refresh.png1.55KB0.53KB▼ 66.10%
functions/images/ico-add.png0.39KB0.42KB0.00%
functions/assets/images/placeholder.png1.47KB0.71KB▼ 51.43%
functions/images/ui-bg_highlight-soft_75_cccccc_1x100.png0.08KB0.17KB0.00%