Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.81ms] Passed 4 tests
This is a short check of server-side resources used by Child Theme Check
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.63 ▼2.22 |
Dashboard /wp-admin | 3.32 ▲0.02 | 42.44 ▼9.22 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 43.63 ▼4.36 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 89.70 ▼3.43 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 36.15 ▼1.97 |
Child Theme Check /wp-admin/tools.php?page=tplc-status | 3.24 | 30.67 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
tplc_admin_notices |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Child Theme Check
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲71 | 14.48 ▼0.17 | 1.82 ▼0.12 | 39.78 ▼5.90 |
Dashboard /wp-admin | 2,215 ▲27 | 5.79 ▲0.72 | 99.23 ▼8.33 | 36.80 ▼6.12 |
Posts /wp-admin/edit.php | 2,098 ▲9 | 2.05 ▲0.08 | 34.99 ▼5.56 | 34.21 ▼0.83 |
Add New Post /wp-admin/post-new.php | 1,526 ▼7 | 23.39 ▲0.16 | 665.34 ▲17.05 | 56.04 ▲3.44 |
Media Library /wp-admin/upload.php | 1,394 ▲9 | 4.24 ▲0.03 | 103.08 ▲2.42 | 44.78 ▼2.09 |
Child Theme Check /wp-admin/tools.php?page=tplc-status | 824 | 2.02 | 24.29 | 25.32 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- 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
Even though everything seems fine, this is not 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
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 esc_html_x() in wp-content/plugins/child-theme-check/includes/admin/views/html-admin-page-status.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: child theme, child theme check, theme, child, check
child-theme-check/child-theme-check.php Passed 13 tests
"Child Theme Check" version 1.0.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
69 characters long description:
This plugin can warn you about old template files in your child theme
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
Success! There were no dangerous files found in this plugin665 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 165 | 289 | 542 |
CSS | 2 | 1 | 1 | 85 |
Markdown | 1 | 22 | 0 | 38 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 5.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 1.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 1 | 16.67% |
Methods | 31 | |
▷ Static methods | 10 | 32.26% |
▷ Public methods | 29 | 93.55% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 6.45% |
Functions | 2 | |
▷ Named functions | 2 | 100.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
No PNG files were detected