94% achilles-shortcodes

Code Review | AchillesTheme-shortcodes

WordPress plugin AchillesTheme-shortcodes scored 94% from 54 tests.

About plugin

  • Plugin page: achilles-shortcodes
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 5.9.2
  • First release: Apr 1, 2016
  • Latest release: Mar 30, 2016
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: strailejoey (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 546 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼298.70ms] Passed 4 tests

Server-side resources used by AchillesTheme-shortcodes
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.0757.71 ▲5.63
Dashboard /wp-admin3.51 ▲0.0733.67 ▲0.24
Posts /wp-admin/edit.php3.74 ▲0.0739.07 ▲2.19
Add New Post /wp-admin/post-new.php6.98 ▼0.0393.80 ▼1,199.47
Media Library /wp-admin/upload.php3.39 ▲0.0626.54 ▲2.23

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for AchillesTheme-shortcodes
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,141 ▲38716.17 ▲0.455.86 ▼2.042.18 ▼0.60
Dashboard /wp-admin3,266 ▲4056.15 ▲0.05119.11 ▼15.33182.86 ▲23.72
Posts /wp-admin/edit.php3,066 ▲3783.10 ▼0.1462.43 ▼5.07139.43 ▼8.48
Add New Post /wp-admin/post-new.php1,923 ▲21218.20 ▼2.56434.86 ▼27.90182.46 ▲24.93
Media Library /wp-admin/upload.php2,055 ▲3575.53 ▼0.01129.60 ▼15.29210.79 ▲19.72

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script 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
Everything seems fine, however this is by no means 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× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/achilles-shortcodes/achilles-shortcodes.php:403
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/achilles-shortcodes/achilles-tinymce-button.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found


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
1 plugin tags: shortcodes

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

The main file in "AchillesTheme-shortcodes" v. 0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 159 characters long)

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
Everything looks great! No dangerous files found in this plugin454 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.73
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions10100.00%
▷ Anonymous functions00.00%
▷ Global constants00.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
There are no PNG files in this plugin