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 gracefully, with no errors
Server metrics [RAM: ▲0.08MB] [CPU: ▼7.52ms] Passed 4 tests
This is a short check of server-side resources used by Child Pages Card
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 39.54 ▼3.74 |
Dashboard /wp-admin | 3.39 ▲0.05 | 47.12 ▼13.41 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 51.76 ▲1.31 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 92.43 ▼4.74 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 38.52 ▼8.18 |
Child Pages Card /wp-admin/options-general.php?page=childpagescard | 3.29 | 40.96 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Child Pages Card
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲57 | 14.24 ▼0.13 | 1.77 ▲0.15 | 42.40 ▲2.93 |
Dashboard /wp-admin | 2,204 ▲23 | 5.62 ▼0.06 | 95.28 ▼15.10 | 40.81 ▼4.59 |
Posts /wp-admin/edit.php | 2,112 ▲9 | 2.01 ▲0.01 | 39.13 ▼5.06 | 37.16 ▼0.25 |
Add New Post /wp-admin/post-new.php | 1,693 ▲167 | 21.77 ▼1.55 | 623.51 ▼4.32 | 59.87 ▲8.02 |
Media Library /wp-admin/upload.php | 1,409 ▲6 | 4.13 ▼0.09 | 96.06 ▼1.69 | 41.86 ▼0.32 |
Child Pages Card /wp-admin/options-general.php?page=childpagescard | 1,133 | 2.45 | 57.49 | 29.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/child-pages-card/lib/class-childpagescard.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/child-pages-card/lib/class-childpagescard.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/child-pages-card/lib/class-childpagescardadmin.php:36
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: archives, shortcode, child page, page, block
child-pages-card/childpagescard.php 92% from 13 tests
Analyzing the main PHP file in "Child Pages Card" version 1.14
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("child-pages-card.php" instead of "childpagescard.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected614 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 81 | 154 | 443 |
JavaScript | 5 | 15 | 39 | 103 |
JSON | 3 | 0 | 0 | 68 |
CSS | 1 | 3 | 17 | 0 |
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 code | 0.33 |
Average class complexity | 25.50 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 4.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 69.23% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 30.77% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 were not PNG files found in your plugin