83% children-index-shortcode-plugin

Code Review | Name: Children Index Shortcode Plugin

WordPress plugin Name: Children Index Shortcode Pluginscored83%from 54 tests.

About plugin

  • Plugin page: children-index-sh...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-3.8.1
  • WordPress version: 6.3.1
  • First release: Dec 10, 2011
  • Latest release: Mar 1, 2014
  • Number of updates: 18
  • Update frequency: every 45.2 days
  • Top authors: ChrisHurst (83.33%)MyWebsiteAdvisor (22.22%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,897 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
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Name: Children Index Shortcode Plugin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.52 ▼3.26
Dashboard /wp-admin3.31 ▲0.0044.44 ▼4.26
Posts /wp-admin/edit.php3.36 ▲0.0046.46 ▼0.84
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.80 ▼16.16
Media Library /wp-admin/upload.php3.23 ▲0.0033.15 ▼4.34

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Name: Children Index Shortcode Plugin
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4314.48 ▲0.061.79 ▼0.7738.01 ▼6.16
Dashboard /wp-admin2,209 ▲214.88 ▼0.98105.36 ▲1.5039.43 ▼6.07
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0136.00 ▼1.3931.86 ▼5.27
Add New Post /wp-admin/post-new.php1,520 ▼2223.39 ▲5.21668.63 ▲49.9258.54 ▲9.09
Media Library /wp-admin/upload.php1,385 ▼04.21 ▼0.0297.34 ▼0.3142.59 ▲0.37

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

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
Even though no errors were found, 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-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/children-index-shortcode-plugin/children-index.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Screenshots: Add an image for screenshot #1 (Example output of shortcode)
  • Plugin Name: You should set the name of your plugin on the first line ( === Name: Children Index Shortcode Plugin=== )
The official readme.txt is a good inspiration

children-index-shortcode-plugin/children-index.php 92% from 13 tests

The main PHP script in "Name: Children Index Shortcode Plugin" version 1.2 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("children-index-shortcode-plugin.php" instead of "children-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
Everything looks great! No dangerous files found in this plugin43 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1182643

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.42
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%
Functions1
▷ Named functions1100.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