84% custom-index-shortcode

Code Review | Custom Index Shortcode

WordPress plugin Custom Index Shortcode scored84%from 54 tests.

About plugin

  • Plugin page: custom-index-shor...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.0
  • WordPress version: 6.3.1
  • First release: Feb 12, 2013
  • Latest release: Oct 14, 2014
  • Number of updates: 58
  • Update frequency: every 10.5 days
  • Top authors: federico.azzario (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,729 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.79ms] Passed 4 tests

An overview of server-side resources used by Custom Index Shortcode
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0042.82 ▲1.58
Dashboard /wp-admin3.31 ▲0.0046.27 ▼6.65
Posts /wp-admin/edit.php3.36 ▲0.0153.67 ▲3.89
Add New Post /wp-admin/post-new.php5.89 ▲0.0191.59 ▼14.02
Media Library /wp-admin/upload.php3.23 ▲0.0036.66 ▼0.06

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Custom Index Shortcode
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲814.67 ▲0.481.81 ▼0.2244.84 ▲7.69
Dashboard /wp-admin2,197 ▲205.55 ▼0.0590.77 ▼2.5541.92 ▼4.34
Posts /wp-admin/edit.php2,108 ▲82.04 ▼0.0740.56 ▲4.6736.51 ▼1.10
Add New Post /wp-admin/post-new.php1,531 ▲523.12 ▲0.09711.75 ▲97.8553.98 ▲1.53
Media Library /wp-admin/upload.php1,408 ▲84.14 ▼0.12107.83 ▲2.0651.20 ▲7.47

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

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
Good news, no errors were detected

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
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/custom-index-shortcode/index.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

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
These attributes need to be fixed:
  • Donate link: Invalid URI ("")
You can take inspiration from this readme.txt

custom-index-shortcode/index.php 92% from 13 tests

The principal PHP file in "Custom Index Shortcode" v. 1.3 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("custom-index-shortcode.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected397 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1110208
PHP15436162
CSS10227

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code1.03
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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
No PNG images were found in this plugin