94% administrative-shortcodes

Code Review | Administrative Shortcodes

WordPress plugin Administrative Shortcodes scored 94% from 54 tests.

About plugin

  • Plugin page: administrative-sh...
  • Plugin version: 0.3.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-5.7.1
  • WordPress version: 5.9.2
  • First release: Apr 6, 2016
  • Latest release: May 11, 2021
  • Number of updates: 27
  • Update frequency: every 68.9 days
  • Top authors: shazdeh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,208 total downloads


Plugin footprint Passed 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.02MB] [CPU: ▼296.83ms] Passed 4 tests

Analyzing server-side resources used by Administrative Shortcodes
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0157.95 ▲9.90
Dashboard /wp-admin3.41 ▲0.0132.53 ▼5.19
Posts /wp-admin/edit.php3.64 ▲0.0036.02 ▲0.24
Add New Post /wp-admin/post-new.php6.89 ▼0.0896.78 ▼1,180.14
Media Library /wp-admin/upload.php3.30 ▼0.0023.55 ▼2.23

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Administrative Shortcodes: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲5316.24 ▲0.455.88 ▼0.072.67 ▲0.36
Dashboard /wp-admin2,895 ▲346.24 ▲0.08118.69 ▼13.65159.30 ▲4.10
Posts /wp-admin/edit.php2,694 ▲43.24 ▼0.1161.86 ▼1.13136.16 ▲0.62
Add New Post /wp-admin/post-new.php1,661 ▼015.54 ▼0.79394.55 ▲5.01155.68 ▲4.00
Media Library /wp-admin/upload.php1,698 ▼05.51 ▼0.03135.24 ▲1.06181.16 ▼6.76

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/administrative-shortcodes/administrative-shortcodes.php:58

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 errors were detected


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
Please take inspiration from this readme.txt

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

"Administrative Shortcodes" version 0.3.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

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
Success! There were no dangerous files found in this plugin171 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
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 functions14100.00%
▷ Anonymous functions00.00%
▷ Global constants00.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
PNG images were not found in this plugin