Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲5.37MB] [CPU: ▲29.48ms] 75% from 4 tests
Analyzing server-side resources used by WritersBlok AI Content Generator for WordPress
Please have a look at the following items
- Extra RAM: Try to keep extra memory usage under 5MB (currently 5.37MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.19 ▲5.73 | 71.65 ▲29.76 |
Dashboard /wp-admin | 9.21 ▲5.91 | 77.06 ▲29.80 |
Posts /wp-admin/edit.php | 9.21 ▲5.85 | 79.69 ▲28.93 |
Add New Post /wp-admin/post-new.php | 9.88 ▲3.99 | 118.88 ▲29.41 |
Media Library /wp-admin/upload.php | 9.21 ▲5.98 | 66.61 ▲34.12 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 9.21 | 61.10 |
Server storage [IO: ▲3.37MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 213 new files
Database: no new tables, 11 new options
New WordPress options |
---|
can_compress_scripts |
fs_debug_mode |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
wpwrtblk_api_settings |
fs_accounts |
fs_active_plugins |
theysaidso_admin_options |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
A check of browser resources used by WritersBlok AI Content Generator for WordPress
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,997 ▲251 | 23.91 ▲9.32 | 1.78 ▼0.11 | 31.75 ▼13.44 |
Dashboard /wp-admin | 2,398 ▲207 | 14.22 ▲9.32 | 278.13 ▲168.67 | 164.54 ▲121.65 |
Posts /wp-admin/edit.php | 2,330 ▲244 | 11.82 ▲9.80 | 114.62 ▲76.87 | 146.22 ▲112.46 |
Add New Post /wp-admin/post-new.php | 1,586 ▲51 | 18.54 ▼4.72 | 480.54 ▼172.99 | 77.24 ▲26.12 |
Media Library /wp-admin/upload.php | 1,569 ▲181 | 13.17 ▲8.94 | 170.17 ▲73.28 | 61.50 ▲17.63 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,315 | 11.48 | 108.25 | 143.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/writersblok-ai/vendor/freemius/wordpress-sdk/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- This plugin does not fully uninstall, leaving 11 options in the database
- wpwrtblk_api_key
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- wpwrtblk_api_settings
- can_compress_scripts
- fs_active_plugins
- fs_accounts
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 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
Please take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/writersblok-ai/templates/app.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/writersblok-ai/classes/class-create-settings-routes.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Screenshots: Add a description for screenshot #2 in writersblok-ai/assets to your readme.txt
writersblok-ai/writersblok-ai.php 85% from 13 tests
The main PHP script in "WritersBlok AI Content Generator for WordPress" version 1.3.19 is automatically included on every request by WordPress
The following require your attention:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
Code Analysis 97% from 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
Everything looks great! No dangerous files found in this plugin35,881 lines of code in 164 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 138 | 8,383 | 18,256 | 34,770 |
Markdown | 3 | 322 | 0 | 760 |
JavaScript | 4 | 34 | 60 | 194 |
JSON | 3 | 0 | 0 | 132 |
CSS | 14 | 0 | 0 | 14 |
SVG | 2 | 0 | 0 | 11 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Please fix the following
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 80.47 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 57 | |
▷ Abstract classes | 2 | 3.51% |
▷ Concrete classes | 55 | 96.49% |
▷ Final classes | 0 | 0.00% |
Methods | 1,367 | |
▷ Static methods | 236 | 17.26% |
▷ Public methods | 973 | 71.18% |
▷ Protected methods | 17 | 1.24% |
▷ Private methods | 377 | 27.58% |
Functions | 121 | |
▷ Named functions | 112 | 92.56% |
▷ Anonymous functions | 9 | 7.44% |
Constants | 227 | |
▷ Global constants | 177 | 77.97% |
▷ Class constants | 50 | 22.03% |
▷ Public constants | 50 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/freemius/wordpress-sdk/freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
vendor/freemius/wordpress-sdk/freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
assets/images/logo.png | 9.91KB | 6.83KB | ▼ 31.11% |