83% display-child-pages-with-thumbnails-and-description

Code Review | Child pages as boxes with title,content and image

WordPress plugin Child pages as boxes with title,content and image scored 83% from 54 tests.

About plugin

  • Plugin page: display-child-pag...
  • Plugin version: 4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6+
  • WordPress version: 6.3.1
  • First release: Jun 27, 2016
  • Latest release: Jun 28, 2016
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: touchwithsridhar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 3,144 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

An overview of server-side resources used by Child pages as boxes with title,content and image
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.11 ▼5.32
Dashboard /wp-admin3.32 ▲0.0149.69 ▲1.88
Posts /wp-admin/edit.php3.37 ▲0.0147.40 ▲1.05
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.61 ▼5.93
Media Library /wp-admin/upload.php3.24 ▲0.0137.42 ▲3.43

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Child pages as boxes with title,content and image
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4314.48 ▲0.101.83 ▼0.0241.27 ▲5.18
Dashboard /wp-admin2,209 ▲244.89 ▼0.99100.27 ▼15.2039.55 ▼8.21
Posts /wp-admin/edit.php2,089 ▼01.99 ▲0.0036.38 ▲1.2532.58 ▼4.58
Add New Post /wp-admin/post-new.php1,533 ▼023.41 ▲0.08666.08 ▼65.3361.69 ▲6.41
Media Library /wp-admin/upload.php1,388 ▼34.20 ▲0.01108.73 ▲7.8947.44 ▲1.94

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • 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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 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/display-child-pages-with-thumbnails-and-description/childpages.php:88

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 issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Contributors: Plugin contributors field is missing
You can look at the official readme.txt

display-child-pages-with-thumbnails-and-description/childpages.php 85% from 13 tests

The principal PHP file in "Child pages as boxes with title,content and image" v. 4.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("display-child-pages-with-thumbnails-and-description.php" instead of "childpages.php")
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

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 detected76 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP143451
CSS10025

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
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%
Functions2
▷ Named functions2100.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