Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼8.53ms] 75% from 4 tests
This is a short check of server-side resources used by WPS Child Theme Generator
Please fix the following
- CPU: Total CPU usage should be kept under 500.00ms (currently 1,793.66ms on /wp-admin/tools.php?page=wps-child-theme-generator)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.90 ▲0.17 | 44.30 ▼1.49 |
Dashboard /wp-admin | 3.73 ▲0.10 | 56.73 ▼11.37 |
Posts /wp-admin/edit.php | 3.78 ▲0.10 | 51.02 ▼2.37 |
Add New Post /wp-admin/post-new.php | 6.25 ▲0.10 | 86.74 ▼18.90 |
Media Library /wp-admin/upload.php | 3.59 ▲0.10 | 40.87 ▲0.23 |
WPS Child Theme Generator /wp-admin/tools.php?page=wps-child-theme-generator | 4.89 | 1,793.66 |
Server storage [IO: ▲13.08MB] [DB: ▲0.23MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 76 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
WPS Child Theme Generator: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲47 | 14.28 ▲0.30 | 2.04 ▼0.01 | 47.45 ▲6.53 |
Dashboard /wp-admin | 2,199 ▲25 | 5.58 ▼0.04 | 94.92 ▲1.47 | 41.83 ▼3.40 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.05 ▲0.07 | 37.74 ▼1.45 | 37.34 ▲1.02 |
Add New Post /wp-admin/post-new.php | 1,548 ▲8 | 23.33 ▲5.25 | 593.96 ▼56.44 | 57.99 ▲4.42 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.21 ▲0.03 | 94.84 ▼4.71 | 42.10 ▼0.12 |
WPS Child Theme Generator /wp-admin/tools.php?page=wps-child-theme-generator | 2,137 | 8.11 | 98.40 | 130.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.23MB] 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
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% 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
- 5× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wps-child-theme-generator/blocks/pub.php
- > /wp-content/plugins/wps-child-theme-generator/admin_page/plugin.php
- > /wp-content/plugins/wps-child-theme-generator/blocks/pub-wpserveur.php
- > /wp-content/plugins/wps-child-theme-generator/wps-child-theme-generator.php
- > /wp-content/plugins/wps-child-theme-generator/blocks/title.php
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Trait 'WPS\\WPS_Child_Theme_Generator\\Singleton' not found in wp-content/plugins/wps-child-theme-generator/classes/plugin.php on line 4
- > PHP Fatal error
Trait 'WPS\\WPS_Child_Theme_Generator\\Singleton' not found in wp-content/plugins/wps-child-theme-generator/classes/helpers.php on line 5
- > PHP Warning
Use of undefined constant WPS_CHILD_THEME_GENERATOR_DIR - assumed 'WPS_CHILD_THEME_GENERATOR_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wps-child-theme-generator/autoload.php on line 197
- > PHP Warning
Use of undefined constant WPS_CHILD_THEME_GENERATOR_DIR - assumed 'WPS_CHILD_THEME_GENERATOR_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wps-child-theme-generator/autoload.php on line 203
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% 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
Attributes that need to be fixed:
- Screenshots: Please describe screenshot #0 in wps-child-theme-generator/assets to your readme.txt
- Screenshots: Screenshot #1 (Tools) image missing
wps-child-theme-generator/wps-child-theme-generator.php Passed 13 tests
This is the main PHP file of "WPS Child Theme Generator" version 1.5.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
26 characters long description:
WPS Child Theme Generator.
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
Everything looks great! No dangerous files found in this plugin18,823 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 8 | 0 | 16 | 16,450 |
PHP | 20 | 433 | 480 | 1,575 |
CSS | 3 | 58 | 13 | 465 |
PO File | 1 | 79 | 81 | 202 |
JavaScript | 3 | 29 | 10 | 103 |
JSON | 2 | 0 | 0 | 28 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 18.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 68.00 |
Average method complexity | 3.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 70 | |
▷ Static methods | 39 | 55.71% |
▷ Public methods | 64 | 91.43% |
▷ Protected methods | 4 | 5.71% |
▷ Private methods | 2 | 2.86% |
Functions | 4 | |
▷ Named functions | 2 | 50.00% |
▷ Anonymous functions | 2 | 50.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.07MB with 0.06MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/check-and-tools-logo-in-plugin.png | 39.55KB | 7.80KB | ▼ 80.28% |
assets/img/wps-child-theme-generator-logo.png | 35.61KB | 6.48KB | ▼ 81.80% |