Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼3.70ms] Passed 4 tests
This is a short check of server-side resources used by Writesonic
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 34.08 ▼2.02 |
Dashboard /wp-admin | 3.37 ▲0.02 | 48.70 ▼10.33 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 44.44 ▼4.39 |
Add New Post /wp-admin/post-new.php | 6.49 ▲0.60 | 90.18 ▲1.96 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 34.91 ▲2.39 |
Writesonic /wp-admin/options-general.php?page=writesonic | 3.27 | 31.10 |
Server storage [IO: ▲1.41MB] [DB: ▲0.00MB] 67% from 3 tests
Input-output and database impact of this plugin
Just a few items left to fix
- You have illegally modified 3 files (0.00KB) outside of "wp-content/plugins/writesonic/" and "wp-content/uploads/"
- (new file) "wp-content/plugins/writesonic/assets/banner-772\303\227250.jpg"
- (new file) "wp-content/plugins/writesonic/assets/icon-128\303\227128.png"
- (new file) "wp-content/plugins/writesonic/assets/banner-1544\303\227500.jpg"
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
writesonic_api_key |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Writesonic
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.25 ▼0.10 | 1.68 ▲0.06 | 39.30 ▼0.61 |
Dashboard /wp-admin | 2,199 ▲19 | 5.54 ▼0.10 | 80.38 ▼13.53 | 40.22 ▼0.11 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.95 ▼0.09 | 34.87 ▼4.80 | 36.39 ▲0.30 |
Add New Post /wp-admin/post-new.php | 1,530 ▲2 | 23.19 ▲0.25 | 641.92 ▲15.95 | 53.99 ▲0.44 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.25 ▼0.00 | 96.82 ▲3.26 | 42.15 ▼1.80 |
Writesonic /wp-admin/options-general.php?page=writesonic | 807 | 1.99 | 27.00 | 23.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- writesonic_api_key
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function home_url() in wp-content/plugins/writesonic/templates/settings.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were 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:
- Screenshots: A description for screenshot #3 is required in writesonic/assets to your readme.txt
writesonic/writesonic.php Passed 13 tests
The primary PHP file in "Writesonic" version 1.0.2 is used by WordPress to initiate all plugin functionality
27 characters long description:
Writesonic WordPress plugin
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin3,984 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 0 | 0 | 3,658 |
PHP | 2 | 83 | 174 | 323 |
Markdown | 1 | 1 | 0 | 3 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 1.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 29 | 96.67% |
▷ Public methods | 30 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 1.13MB with 0.63MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/logo.png | 84.34KB | 43.29KB | ▼ 48.67% |
assets/screenshot-2.png | 349.66KB | 136.04KB | ▼ 61.10% |
assets/screenshot-1.png | 58.75KB | 18.86KB | ▼ 67.89% |
assets/icon-128×128.png | 2.30KB | 1.50KB | ▼ 34.76% |
assets/screenshot-3.png | 569.54KB | 195.11KB | ▼ 65.74% |