84% arconix-shortcodes

Code Review | Arconix Shortcodes

WordPress plugin Arconix Shortcodes scored84%from 54 tests.

About plugin

  • Plugin page: arconix-shortcodes
  • Plugin version: 2.1.9
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-6.3
  • WordPress version: 6.3.1
  • First release: Sep 22, 2011
  • Latest release: Aug 29, 2023
  • Number of updates: 92
  • Update frequency: every 47.7 days
  • Top authors: jgardner03 (68.48%)tychesoftwares (32.61%)

Code review

54 tests

User reviews

24 reviews

Install metrics

6,000+ active /113,362 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
Install script ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▲8.08ms] Passed 4 tests

Analyzing server-side resources used by Arconix Shortcodes
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.17 ▲3.60
Dashboard /wp-admin3.43 ▲0.0975.81 ▲18.36
Posts /wp-admin/edit.php3.48 ▲0.1368.28 ▲21.21
Add New Post /wp-admin/post-new.php5.97 ▲0.08103.28 ▲2.00
Media Library /wp-admin/upload.php3.27 ▲0.0444.59 ▲8.34
Frequently Asked Questions for Arconix Shortcodes /wp-admin/index.php?page=shortcodes_faq_page3.3161.85

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 85 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
shortcodes_version
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Arconix Shortcodes
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲9114.32 ▼0.031.77 ▼0.0340.03 ▲1.30
Dashboard /wp-admin2,239 ▲585.58 ▼0.0797.02 ▼2.6691.56 ▲49.82
Posts /wp-admin/edit.php2,145 ▲452.19 ▲0.1936.53 ▲1.9633.74 ▼4.38
Add New Post /wp-admin/post-new.php6,331 ▲4,79226.07 ▲2.931,018.36 ▲366.2579.33 ▲26.57
Media Library /wp-admin/upload.php1,441 ▲444.19 ▼0.02119.52 ▲23.9074.99 ▲31.44
Frequently Asked Questions for Arconix Shortcodes /wp-admin/index.php?page=shortcodes_faq_page9212.0224.7141.63

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • db_upgraded
    • shortcodes_version
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/arconix-shortcodes/includes/component/welcome-page/templates/social-media-elements.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_query_var() in wp-content/plugins/arconix-shortcodes/includes/component/welcome-page/templates/welcome/welcome-page.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/arconix-shortcodes/plugin.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_query_var() in wp-content/plugins/arconix-shortcodes/includes/component/faq-support/templates/faq-page/faq-page.php:6

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

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: toggle, tabs, buttons, accordion, shortcodes...

arconix-shortcodes/plugin.php 85% from 13 tests

The main PHP file in "Arconix Shortcodes" ver. 2.1.9 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("arconix-shortcodes.php" instead of "plugin.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin5,057 lines of code in 34 files:
LanguageFilesBlank linesComment linesLines of code
PHP137531,3582,370
CSS5731101,403
SVG100565
LESS10100144548
JavaScript42071170
Markdown1001

PHP code Passed 2 tests

Analyzing 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.32
Average class complexity29.50
▷ Minimum class complexity5.00
▷ Maximum class complexity133.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity70.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods76
▷ Static methods3951.32%
▷ Public methods6990.79%
▷ Protected methods00.00%
▷ Private methods79.21%
Functions32
▷ Named functions32100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants150.00%
▷ Class constants150.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
33 PNG files occupy 0.29MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png38.61KB13.33KB▼ 65.48%
images/box-download.png1.22KB1.33KB0.00%
includes/component/welcome-page/assets/images/acs_misellaneous.png20.71KB8.55KB▼ 58.70%
screenshot-1.png48.56KB20.05KB▼ 58.71%
images/close.png0.32KB0.34KB0.00%