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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.20MB] [CPU: ▼2.72ms] Passed 4 tests
A check of server-side resources used by Question Generator
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 39.23 ▼10.02 |
Dashboard /wp-admin | 4.71 ▲1.41 | 78.71 ▲24.15 |
Posts /wp-admin/edit.php | 4.84 ▲1.48 | 83.12 ▲30.77 |
Add New Post /wp-admin/post-new.php | 3.79 ▼2.09 | 39.29 ▼55.78 |
Media Library /wp-admin/upload.php | 4.78 ▲1.55 | 78.02 ▲41.28 |
Server storage [IO: ▲0.35MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
qg_validation |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Question Generator
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,867 ▲121 | 13.72 ▼0.50 | 1.56 ▼0.25 | 40.03 ▼8.19 |
Dashboard /wp-admin | 2,273 ▲88 | 6.87 ▲0.99 | 120.13 ▲2.56 | 82.73 ▲37.21 |
Posts /wp-admin/edit.php | 2,164 ▲75 | 2.37 ▲0.40 | 56.96 ▲20.09 | 33.57 ▼0.79 |
Add New Post /wp-admin/post-new.php | 1,682 ▲168 | 22.43 ▲4.96 | 605.41 ▼110.55 | 45.78 ▼2.55 |
Media Library /wp-admin/upload.php | 1,450 ▲62 | 5.24 ▲1.09 | 131.23 ▲28.47 | 43.32 ▼2.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
The following issues need your attention
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/media.php' (include_path='.:/usr/share/php') in wp-content/plugins/question-generator/connector/QGAPI.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/question-generator/front/config.php:4
- > PHP Warning
require_once(ABSPATHwp-admin/includes/media.php): failed to open stream: No such file or directory in wp-content/plugins/question-generator/connector/QGAPI.php on line 3
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/question-generator/connector/QGAPI.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: content, content generator, marketing, seo, ai
question-generator/questiongenerator.php 77% from 13 tests
The main file in "Question Generator" v. 2022111601... serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Version: The version number should only use digits and periods (ex. "1.0.3" instead of "2022111601...")
- Main file name: Name the main plugin file the same as the plugin slug ("question-generator.php" instead of "questiongenerator.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 207 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected4,643 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 0 | 0 | 4,135 |
PHP | 9 | 96 | 42 | 480 |
CSS | 1 | 6 | 0 | 28 |
PHP code Passed 2 tests
A brief analysis 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.36 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 2.37 |
▷ 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 | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 35 | 100.00% |
▷ Public methods | 31 | 88.57% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 11.43% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/qg-icon.png | 10.15KB | 5.99KB | ▼ 40.98% |
images/qg-favi.png | 4.84KB | 2.94KB | ▼ 39.25% |