83% children-content-shortcode-plugin

Code Review | Name: Children Content Shortcode Plugin

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

About plugin

  • Plugin page: children-content-...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-3.8.1
  • WordPress version: 6.3.1
  • First release: Dec 11, 2011
  • Latest release: Mar 2, 2014
  • Number of updates: 20
  • Update frequency: every 40.6 days
  • Top authors: ChrisHurst (90%)MyWebsiteAdvisor (15%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,697 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Name: Children Content Shortcode Plugin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.38 ▼4.56
Dashboard /wp-admin3.31 ▲0.0151.66 ▼2.00
Posts /wp-admin/edit.php3.36 ▲0.0152.61 ▲6.21
Add New Post /wp-admin/post-new.php5.89 ▲0.0196.21 ▲5.14
Media Library /wp-admin/upload.php3.23 ▲0.0137.04 ▼0.83

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Name: Children Content Shortcode Plugin
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.25 ▼0.101.74 ▼0.0044.03 ▼4.23
Dashboard /wp-admin2,192 ▲155.61 ▲0.03106.22 ▲8.3437.44 ▼8.49
Posts /wp-admin/edit.php2,100 ▼01.99 ▲0.0439.70 ▲2.7636.72 ▲0.37
Add New Post /wp-admin/post-new.php1,526 ▼022.82 ▼0.35586.13 ▼111.0554.26 ▼0.02
Media Library /wp-admin/upload.php1,397 ▼64.19 ▼0.0198.64 ▼1.6243.25 ▼5.12

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/children-content-shortcode-plugin/children-content.php:32

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Screenshots: Please add an image for screenshot #1 (example output of the plugin shortcode.)
  • Plugin Name: You should set the name of your plugin on the first line ( === Name: Children Content Shortcode Plugin=== )
The official readme.txt might help

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

"Name: Children Content Shortcode Plugin" version 1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("children-content-shortcode-plugin.php" instead of "children-content.php")

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
Good job! No executable or dangerous file extensions detected32 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1193132

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
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 files were detected