Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲1.09MB] [CPU: ▼2.04ms] Passed 4 tests
Analyzing server-side resources used by Code Generate
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.52 ▲1.06 | 46.08 ▲4.84 |
Dashboard /wp-admin | 4.40 ▲1.09 | 52.01 ▼7.14 |
Posts /wp-admin/edit.php | 4.51 ▲1.15 | 54.59 ▲2.78 |
Add New Post /wp-admin/post-new.php | 7.00 ▲1.11 | 90.92 ▼8.64 |
Media Library /wp-admin/upload.php | 4.32 ▲1.09 | 44.27 ▲5.32 |
Code Generator /wp-admin/tools.php?page=generate_wp_settings | 4.33 | 50.53 |
Server storage [IO: ▲2.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 42 new files
Database: no new tables, 7 new options
New WordPress options |
---|
generate_wp_version |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Code Generate
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,905 ▲144 | 13.53 ▼0.92 | 8.12 ▲6.25 | 41.63 ▼4.82 |
Dashboard /wp-admin | 2,203 ▲26 | 5.67 ▼0.00 | 88.26 ▼13.03 | 40.01 ▼6.22 |
Posts /wp-admin/edit.php | 2,108 ▲5 | 2.06 ▲0.05 | 33.63 ▼1.78 | 34.19 ▼3.43 |
Add New Post /wp-admin/post-new.php | 1,533 ▼14 | 23.52 ▼0.10 | 671.64 ▼51.12 | 53.18 ▼6.66 |
Media Library /wp-admin/upload.php | 1,402 ▲2 | 4.35 ▲0.12 | 94.81 ▼21.82 | 45.85 ▼2.43 |
Code Generator /wp-admin/tools.php?page=generate_wp_settings | 1,431 | 3.41 | 70.08 | 30.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 7 options in the database
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- generate_wp_version
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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 SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots do not have images: #1 (Plugin Readme Generator), #2 (Result code), #3 (Hooks Handler Generator), #4 (Post Type Generator), #5 (All Generator Types), #6 (How to find it? Tools -> Code generator)
code-generator/code-generator.php 85% from 13 tests
The main PHP file in "Code Generate" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Description: The description should be shorter than 140 characters (currently 148 characters long)
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin48,549 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 40 | 27 | 39,893 |
PHP | 9 | 253 | 4,230 | 8,634 |
LESS | 1 | 0 | 0 | 21 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 23.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 74.00 |
Average method complexity | 3.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 56.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 43 | |
▷ Static methods | 3 | 6.98% |
▷ Public methods | 40 | 93.02% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 6.98% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected