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.08MB] [CPU: ▼4.35ms] Passed 4 tests
This is a short check of server-side resources used by Document Generator for OpenAPI
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 34.31 ▼9.22 |
Dashboard /wp-admin | 3.38 ▲0.08 | 44.86 ▼4.94 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 48.45 ▲1.18 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 91.16 ▼3.43 |
Media Library /wp-admin/upload.php | 3.31 ▲0.07 | 35.14 ▲0.20 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Document Generator for OpenAPI
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 14.48 ▲0.21 | 1.85 ▼0.05 | 43.57 ▼6.44 |
Dashboard /wp-admin | 2,206 ▲18 | 4.83 ▼0.05 | 107.14 ▼7.55 | 41.96 ▼5.24 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.05 ▼0.10 | 39.88 ▲2.37 | 37.08 ▼1.48 |
Add New Post /wp-admin/post-new.php | 1,534 ▼0 | 23.30 ▲0.15 | 675.55 ▲9.08 | 56.69 ▲3.21 |
Media Library /wp-admin/upload.php | 1,382 ▼6 | 4.19 ▼0.16 | 97.60 ▼11.46 | 42.72 ▼2.75 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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 items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'OpenAPIGenerator\\GeneratorBase' not found in wp-content/plugins/document-generator-for-openapi/inc/class-generator-3_1_0.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== document-generator-for-openapi ===
)
document-generator-for-openapi/document-generator-for-openapi.php Passed 13 tests
The entry point to "Document Generator for OpenAPI" version 1.1.0 is a PHP file that has certain tags in its header comment area
64 characters long description:
OpenAPI (fka. Swagger) Document Generator for WordPress REST API
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected495 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 143 | 80 | 467 |
Markdown | 2 | 8 | 0 | 28 |
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.46 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 3.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 1 | 14.29% |
▷ Concrete classes | 6 | 85.71% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 2 | 6.45% |
▷ Public methods | 27 | 87.10% |
▷ Protected methods | 1 | 3.23% |
▷ Private methods | 3 | 9.68% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin