84% arconix-shortcodes

Code Review | Arconix Shortcodes

WordPress plugin Arconix Shortcodes scored 84% from 54 tests.

About plugin

  • Plugin page: arconix-shortcodes
  • Plugin version: 2.1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-5.7
  • WordPress version: 5.8.1
  • First release: Sep 22, 2011
  • Latest release: Mar 31, 2021
  • Number of updates: 89
  • Update frequency: every 39.4 days
  • Top authors: jgardner03 (70.79%)tychesoftwares (30.34%)

Code review

54 tests

User reviews

24 reviews

Install metrics

8,000+ active / 104,881 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.48MB] [CPU: ▼104.67ms] 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 /2.99 ▲0.2737.96 ▲17.75
Dashboard /wp-admin3.61 ▲0.5692.09 ▲43.06
Posts /wp-admin/edit.php3.67 ▲0.5690.06 ▲43.79
Add New Post /wp-admin/post-new.php5.97 ▲0.53131.80 ▼519.90
Media Library /wp-admin/upload.php3.56 ▲0.5674.77 ▲40.43
Frequently Asked Questions for Arconix Shortcodes /wp-admin/index.php?page=shortcodes_faq_page3.4862.96

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 81 new files
Database: no new tables, 1 new option
New WordPress options
shortcodes_version

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 /3,765 ▲16915.86 ▲0.3311.38 ▲1.0146.18 ▲0.64
Dashboard /wp-admin3,016 ▲855.99 ▲0.05148.20 ▼6.27201.02 ▲79.98
Posts /wp-admin/edit.php2,816 ▲772.86 ▲0.1467.61 ▼1.1393.18 ▲9.96
Add New Post /wp-admin/post-new.php1,886 ▲27118.39 ▼3.04455.57 ▲131.49114.60 ▲8.18
Media Library /wp-admin/upload.php1,882 ▲755.08 ▲0.07136.76 ▼12.14138.01 ▲22.63
Frequently Asked Questions for Arconix Shortcodes /wp-admin/index.php?page=shortcodes_faq_page1,2142.0956.15116.53

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 1 option in the database
    • shortcodes_version

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/faq-support/templates/faq-page/faq-page.php:6
    • > 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

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: accordion, arconix, buttons, tabs, toggle...

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

The main PHP file in "Arconix Shortcodes" ver. 2.1.7 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
PHP137541,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
29 compressed PNG files occupy 0.18MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/arrow-orange.png0.21KB0.17KB▼ 18.60%
images/arrow-pink.png0.28KB0.27KB▼ 3.52%
images/arrow-black.png0.27KB0.28KB0.00%
images/check.png0.32KB0.34KB0.00%
images/admin/trello-16x16.png1.43KB0.82KB▼ 42.64%