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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.22MB] [CPU: ▼1.49ms] Passed 4 tests
A check of server-side resources used by KAGG Generator
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 41.95 ▼2.52 |
Dashboard /wp-admin | 3.62 ▲0.31 | 49.27 ▲1.29 |
Posts /wp-admin/edit.php | 3.67 ▲0.31 | 52.15 ▼1.08 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.27 | 88.36 ▼3.65 |
Media Library /wp-admin/upload.php | 3.48 ▲0.25 | 43.16 ▲9.43 |
KAGG Generator /wp-admin/tools.php?page=kagg-generator | 3.46 | 35.23 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
KAGG Generator: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,813 ▲67 | 13.19 ▼1.24 | 1.62 ▼0.07 | 43.08 ▲3.64 |
Dashboard /wp-admin | 2,219 ▲31 | 4.95 ▼0.91 | 106.62 ▼6.69 | 54.02 ▲8.01 |
Posts /wp-admin/edit.php | 2,102 ▲16 | 2.05 ▲0.02 | 36.88 ▼2.20 | 35.53 ▼2.57 |
Add New Post /wp-admin/post-new.php | 1,679 ▲165 | 21.89 ▲4.36 | 763.26 ▲117.36 | 54.11 ▲2.67 |
Media Library /wp-admin/upload.php | 1,401 ▲16 | 4.14 ▼0.09 | 100.65 ▼1.27 | 48.38 ▲5.59 |
KAGG Generator /wp-admin/tools.php?page=kagg-generator | 885 | 2.07 | 26.11 | 25.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- 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
Everything seems fine, however this is by no means an exhaustive test
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
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/kagg-fast-post-generator/src/php/ajax.php
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'KAGG\\Generator\\Generator\\Item' not found in wp-content/plugins/kagg-fast-post-generator/src/php/Generator/Comment.php:17
- > PHP Fatal error
Uncaught Error: Class 'KAGG\\Generator\\Generator\\Item' not found in wp-content/plugins/kagg-fast-post-generator/src/php/Generator/User.php:18
- > PHP Fatal error
Uncaught Error: Class 'KAGG\\Generator\\Generator\\Post' not found in wp-content/plugins/kagg-fast-post-generator/src/php/Generator/Page.php:13
- > PHP Fatal error
Uncaught Error: Class 'KAGG\\Generator\\Generator\\Item' not found in wp-content/plugins/kagg-fast-post-generator/src/php/Generator/Post.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: generate posts, generate pages, bulk generate, development
kagg-fast-post-generator/plugin.php 62% from 13 tests
The main file in "KAGG Generator" v. 1.9.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- 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
- Requires PHP: Required version must match the one declared in readme.txt ("5.6" instead of "7.0")
- Main file name: The principal plugin file should be the same as the plugin slug ("kagg-fast-post-generator.php" instead of "plugin.php")
- Domain Path: The domain path points to an invalid folder, "/languages/" does not exist
- Requires at least: Required version must match the one declared in readme.txt ("5.0" instead of "5.3")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected3,266 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 584 | 1,477 | 3,090 |
JavaScript | 1 | 34 | 21 | 148 |
CSS | 1 | 5 | 0 | 23 |
JSON | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 17.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 2.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 1 | 6.67% |
▷ Concrete classes | 14 | 93.33% |
▷ Final classes | 0 | 0.00% |
Methods | 132 | |
▷ Static methods | 31 | 23.48% |
▷ Public methods | 86 | 65.15% |
▷ Protected methods | 16 | 12.12% |
▷ Private methods | 30 | 22.73% |
Functions | 3 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 3 | 100.00% |
Constants | 21 | |
▷ Global constants | 4 | 19.05% |
▷ Class constants | 17 | 80.95% |
▷ Public constants | 17 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon-16x16.png | 2.06KB | 0.94KB | ▼ 54.16% |