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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.39MB] [CPU: ▼9.18ms] Passed 4 tests
An overview of server-side resources used by Data Generator
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.10 ▲0.64 | 40.93 ▼6.19 |
Dashboard /wp-admin | 3.90 ▲0.60 | 48.23 ▼4.30 |
Posts /wp-admin/edit.php | 3.93 ▲0.57 | 50.17 ▲1.67 |
Add New Post /wp-admin/post-new.php | 5.67 ▼0.21 | 62.23 ▼27.91 |
Media Library /wp-admin/upload.php | 3.82 ▲0.60 | 35.64 ▲5.50 |
Server storage [IO: ▲1.71MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 184 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Data Generator
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,992 ▲235 | 13.99 ▼0.36 | 4.98 ▲3.13 | 40.15 ▲1.93 |
Dashboard /wp-admin | 2,242 ▲57 | 4.85 ▼1.03 | 111.85 ▲5.58 | 39.96 ▼3.27 |
Posts /wp-admin/edit.php | 2,131 ▲42 | 2.05 ▲0.07 | 34.89 ▼1.79 | 31.16 ▼3.63 |
Add New Post /wp-admin/post-new.php | 6,245 ▲4,711 | 19.18 ▼3.92 | 855.23 ▲181.13 | 51.45 ▼14.20 |
Media Library /wp-admin/upload.php | 1,430 ▲42 | 4.22 ▲0.05 | 97.14 ▼13.17 | 42.64 ▼2.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 19× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/data-generator/LolitaFramework/CssLoader/views/lf_css_loader_9.php
- > /wp-content/plugins/data-generator/LolitaFramework/CssLoader/views/lf_css_loader_10.php
- > /wp-content/plugins/data-generator/LolitaFramework/Configuration/views/meta_box_default.php
- > /wp-content/plugins/data-generator/LolitaFramework/CssLoader/views/lf_css_loader.php
- > /wp-content/plugins/data-generator/LolitaFramework/Widgets/views/collection.php
- > /wp-content/plugins/data-generator/LolitaFramework/CssLoader/views/lf_css_loader_3.php
- > /wp-content/plugins/data-generator/LolitaFramework/Controls/Repeater/views/template.php
- > /wp-content/plugins/data-generator/LolitaFramework/CssLoader/views/lf_css_loader_6.php
- > /wp-content/plugins/data-generator/LolitaFramework/CssLoader/views/lf_css_loader_2.php
- > /wp-content/plugins/data-generator/LolitaFramework/Configuration/views/meta_box_with_controls.php
- 111× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'datagenerator\\LolitaFramework\\Configuration\\IModule' not found in wp-content/plugins/data-generator/LolitaFramework/Configuration/Modules/ShortCodes.php:7
- > PHP Fatal error
Uncaught Error: Class 'datagenerator\\LolitaFramework\\Configuration\\Init' not found in wp-content/plugins/data-generator/LolitaFramework/Configuration/Modules/PostTypes.php:10
- > PHP Notice
Undefined variable: me in wp-content/plugins/data-generator/LolitaFramework/Controls/Text/views/text.php on line 1
- > PHP Fatal error
Uncaught Error: Call to a member function getOptions() on null in wp-content/plugins/data-generator/LolitaFramework/Controls/Radios/views/radios.php:1
- > PHP Notice
Undefined variable: class in wp-content/plugins/data-generator/LolitaFramework/CssLoader/views/lf_css_loader_1.php on line 52
- > PHP Notice
Undefined variable: me in wp-content/plugins/data-generator/LolitaFramework/Controls/Gallery/views/gallery.php on line 1
- > PHP Notice
Undefined variable: control in wp-content/plugins/data-generator/LolitaFramework/Controls/Button/views/customize_button.php on line 4
- > PHP Notice
Undefined variable: me in wp-content/plugins/data-generator/LolitaFramework/Controls/Select/views/select.php on line 1
- > PHP Notice
Undefined variable: controls in wp-content/plugins/data-generator/LolitaFramework/Configuration/views/meta_box_with_controls.php on line 3
- > PHP Notice
Undefined variable: me in wp-content/plugins/data-generator/LolitaFramework/Controls/Password/views/password.php on line 1
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 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
6 plugin tags: demo, data, creator, simple data, generator...
data-generator/datagenerator.php 77% from 13 tests
The main PHP file in "Data Generator" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 233 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("data-generator.php" instead of "datagenerator.php")
- 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 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin11,314 lines of code in 158 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 104 | 852 | 3,306 | 6,286 |
TypeScript | 13 | 446 | 2,815 | 1,496 |
Sass | 6 | 83 | 1 | 1,380 |
JavaScript | 10 | 152 | 906 | 1,101 |
JSON | 14 | 0 | 0 | 919 |
Markdown | 2 | 22 | 0 | 55 |
CSS | 6 | 0 | 6 | 36 |
PO File | 2 | 6 | 8 | 34 |
XML | 1 | 1 | 1 | 7 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 8.42 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 57.00 |
Average method complexity | 2.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 23 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 62 | |
▷ Abstract classes | 2 | 3.23% |
▷ Concrete classes | 60 | 96.77% |
▷ Final classes | 0 | 0.00% |
Methods | 397 | |
▷ Static methods | 163 | 41.06% |
▷ Public methods | 337 | 84.89% |
▷ Protected methods | 5 | 1.26% |
▷ Private methods | 55 | 13.85% |
Functions | 5 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 5 | 100.00% |
Constants | 21 | |
▷ Global constants | 10 | 47.62% |
▷ Class constants | 11 | 52.38% |
▷ Public constants | 11 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
LolitaFramework/Controls/Repeater/assets/images/sprite.png | 17.94KB | 0.93KB | ▼ 94.83% |