84% child-pages-tabs

Code Review | Child Pages Tabs

WordPress plugin Child Pages Tabs scored84%from 54 tests.

About plugin

  • Plugin page: child-pages-tabs
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.9.5
  • WordPress version: 6.3.1
  • First release: Apr 24, 2018
  • Latest release: Apr 24, 2018
  • Number of updates: 7
  • Update frequency: every 0.3 days
  • Top authors: rushijagani (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /882 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 gracefully, with no errors

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

This is a short check of server-side resources used by Child Pages Tabs
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.51 ▼6.47
Dashboard /wp-admin3.32 ▼0.0243.35 ▼19.96
Posts /wp-admin/edit.php3.37 ▲0.0241.42 ▼1.86
Add New Post /wp-admin/post-new.php5.90 ▲0.0286.74 ▼16.22
Media Library /wp-admin/upload.php3.25 ▲0.0235.03 ▲0.63

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Child Pages Tabs
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.64 ▲0.361.74 ▲0.0939.87 ▼1.18
Dashboard /wp-admin2,198 ▲185.59 ▼0.0384.60 ▼5.0936.58 ▼1.53
Posts /wp-admin/edit.php2,103 ▲32.03 ▲0.0135.87 ▼3.1529.38 ▼7.45
Add New Post /wp-admin/post-new.php1,528 ▼023.05 ▲0.34604.06 ▲9.4473.86 ▲7.81
Media Library /wp-admin/upload.php1,397 ▼34.19 ▼0.0993.45 ▼6.5540.17 ▼4.52

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 does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/child-pages-tabs/classes/class-child-pages-tabs-shortcode.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed: The official readme.txt might help

child-pages-tabs/child-pages-tabs.php Passed 13 tests

The primary PHP file in "Child Pages Tabs" version 1.0.0 is used by WordPress to initiate all plugin functionality
96 characters long description:
Add all the child pages Title and Content in the tabs layout to the parent page usign shortcode.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin175 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP33654107
CSS14265
JavaScript1003

PHP code Passed 2 tests

An short overview of 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 code0.22
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity3.20
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods120.00%
▷ Public methods480.00%
▷ Protected methods00.00%
▷ Private methods120.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin