84% meks-flexible-shortcodes

Code Review | Meks Flexible Shortcodes

WordPress plugin Meks Flexible Shortcodes scored 84% from 54 tests.

About plugin

  • Plugin page: meks-flexible-sho...
  • Plugin version: 1.3.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.3
  • WordPress version: 6.3.1
  • First release: Jan 26, 2014
  • Latest release: Sep 11, 2023
  • Number of updates: 58
  • Update frequency: every 60.6 days
  • Top authors: mekshq (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

20,000+ active / 389,060 total downloads

Benchmarks

Plugin footprint 83% 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: ▲0.20MB] [CPU: ▲2.30ms] Passed 4 tests

Server-side resources used by Meks Flexible Shortcodes
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2148.49 ▲4.32
Dashboard /wp-admin3.51 ▲0.2054.93 ▼0.28
Posts /wp-admin/edit.php3.62 ▲0.2756.29 ▲2.66
Add New Post /wp-admin/post-new.php6.09 ▲0.2092.99 ▲2.50
Media Library /wp-admin/upload.php3.43 ▲0.2042.38 ▲6.38

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 86 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Meks Flexible Shortcodes
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,945 ▲14513.98 ▼0.367.31 ▲5.2445.75 ▲0.10
Dashboard /wp-admin2,236 ▲335.32 ▲0.49121.80 ▲7.1342.73 ▼2.52
Posts /wp-admin/edit.php2,124 ▲352.44 ▲0.3845.38 ▲8.6438.33 ▲1.67
Add New Post /wp-admin/post-new.php1,546 ▲3223.66 ▲6.09799.05 ▲34.9038.75 ▼23.65
Media Library /wp-admin/upload.php1,424 ▲364.60 ▲0.43100.22 ▼5.1941.97 ▼1.56

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 14× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/meks-flexible-shortcodes/inc/functions.php:971
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/meks-flexible-shortcodes/templates/progressbars.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/meks-flexible-shortcodes/templates/dropcaps.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/meks-flexible-shortcodes/templates/columns.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/meks-flexible-shortcodes/templates/toggles.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/meks-flexible-shortcodes/templates/buttons.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/meks-flexible-shortcodes/templates/pullquotes.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/meks-flexible-shortcodes/templates/social.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/meks-flexible-shortcodes/templates/accordion.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/meks-flexible-shortcodes/templates/highlights.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: tabs, shortcodes, buttons, toggles, accordions...

meks-flexible-shortcodes/meks-shortcodes.php 85% from 13 tests

The principal PHP file in "Meks Flexible Shortcodes" v. 1.3.6 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("meks-flexible-shortcodes.php" instead of "meks-shortcodes.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 233 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected11,504 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
SVG3005,409
CSS522573,749
PHP15199901,953
JavaScript2742209
PO File18593184

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions27
▷ Named functions27100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
49 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/social_icons/twitch_ico.png1.27KB0.59KB▼ 53.80%
img/social_icons/delicious_ico.png1.25KB0.54KB▼ 56.62%
img/social_icons/myspace_ico.png1.30KB0.66KB▼ 49.06%
img/social_icons/google_ico.png1.27KB0.66KB▼ 47.97%
img/social_icons/spotify_ico.png1.29KB0.64KB▼ 50.38%