84% administrative-shortcodes

Code Review | Administrative Shortcodes

WordPress plugin Administrative Shortcodes scored84%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: 6.3.1
  • 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,494 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼12.60ms] Passed 4 tests

Analyzing server-side resources used by Administrative Shortcodes
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.76 ▲0.0347.83 ▼0.36
Dashboard /wp-admin3.59 ▼0.0454.18 ▼19.28
Posts /wp-admin/edit.php3.71 ▲0.0353.14 ▼1.71
Add New Post /wp-admin/post-new.php6.17 ▲0.0394.57 ▼27.15
Media Library /wp-admin/upload.php3.52 ▲0.0338.42 ▼2.24

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Administrative Shortcodes
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.28 ▼0.022.05 ▲0.2843.43 ▲0.72
Dashboard /wp-admin2,189 ▲125.59 ▼0.0488.21 ▼5.6840.04 ▼4.66
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0439.04 ▼9.1234.85 ▼8.00
Add New Post /wp-admin/post-new.php1,526 ▼2517.88 ▼0.52661.70 ▼12.1345.56 ▼14.97
Media Library /wp-admin/upload.php1,400 ▼34.19 ▼0.04100.71 ▼5.9844.29 ▼4.31

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 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 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

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
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
You can look at the official readme.txt

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

Analyzing the main PHP file in "Administrative Shortcodes" version 0.3.4
Please make the necessary changes and fix the following:
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin171 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13887171

PHP code Passed 2 tests

An overview of 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.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
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%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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
There are no PNG files in this plugin