Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▼3.92ms] Passed 4 tests
Analyzing server-side resources used by AI Magic - SEO Content Generator & Article Writer
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 43.28 ▼3.52 |
Dashboard /wp-admin | 3.47 ▲0.16 | 46.51 ▼4.13 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 50.81 ▲2.01 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 91.80 ▼5.66 |
Media Library /wp-admin/upload.php | 3.39 ▲0.15 | 33.65 ▼2.36 |
History /wp-admin/edit.php?post_type=ai_magic_logs | 3.43 | 49.91 |
Subscription /wp-admin/admin.php?page=ai-magic-subscription | 3.36 | 31.20 |
Settings /wp-admin/admin.php?page=ai-magic-settings | 3.53 | 38.18 |
Server storage [IO: ▲5.25MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 216 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by AI Magic - SEO Content Generator & Article Writer
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,943 ▲181 | 13.41 ▼0.93 | 7.98 ▲6.03 | 41.36 ▼13.02 |
Dashboard /wp-admin | 2,237 ▲60 | 5.69 ▲0.05 | 92.21 ▲2.34 | 75.21 ▲36.10 |
Posts /wp-admin/edit.php | 2,145 ▲42 | 1.97 ▼0.04 | 34.71 ▼2.94 | 34.00 ▼3.74 |
Add New Post /wp-admin/post-new.php | 1,594 ▲68 | 22.97 ▼0.01 | 710.81 ▲132.94 | 58.45 ▲5.93 |
Media Library /wp-admin/upload.php | 1,442 ▲39 | 4.13 ▼0.05 | 98.62 ▲5.14 | 77.81 ▲32.59 |
History /wp-admin/edit.php?post_type=ai_magic_logs | 1,171 | 1.97 | 37.55 | 32.33 |
Subscription /wp-admin/admin.php?page=ai-magic-subscription | 938 | 2.01 | 25.46 | 29.26 |
Settings /wp-admin/admin.php?page=ai-magic-settings | 3,311 | 5.37 | 105.58 | 86.58 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
Please fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/newsletter-page-redirects/public/partials/ai-magic-public-display.php
- > /wp-content/plugins/newsletter-page-redirects/admin/partials/ai-magic-admin-display.php
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/newsletter-page-redirects/includes/class-ai-magic-vars.php:309
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/newsletter-page-redirects/admin/class-ai-magic-metabox.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/newsletter-page-redirects/admin/class-ai-magic-menu.php:42
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/newsletter-page-redirects/includes/class-ai-magic-logs.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 86% 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
Please fix the following attributes:
- Screenshots: These screenshots need descriptions #4, #5 in newsletter-page-redirects/assets to your readme.txt
newsletter-page-redirects/ai-magic.php 77% from 13 tests
The main PHP file in "AI Magic - SEO Content Generator & Article Writer" ver. 1.0.4 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time 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
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("newsletter-page-redirects.php" instead of "ai-magic.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 299 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected34,852 lines of code in 158 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 135 | 8,335 | 17,859 | 34,326 |
JavaScript | 6 | 50 | 140 | 263 |
Markdown | 1 | 68 | 0 | 214 |
CSS | 15 | 4 | 8 | 33 |
XML | 1 | 3 | 0 | 16 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
The following items need your attention
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,088)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 79.28 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,088.00 |
Average method complexity | 4.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 57 | |
▷ Abstract classes | 2 | 3.51% |
▷ Concrete classes | 55 | 96.49% |
▷ Final classes | 0 | 0.00% |
Methods | 1,293 | |
▷ Static methods | 200 | 15.47% |
▷ Public methods | 898 | 69.45% |
▷ Protected methods | 17 | 1.31% |
▷ Private methods | 378 | 29.23% |
Functions | 110 | |
▷ Named functions | 110 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 147 | |
▷ Global constants | 100 | 68.03% |
▷ Class constants | 47 | 31.97% |
▷ Public constants | 47 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
10 PNG files occupy 2.10MB with 1.42MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 324.93KB | 83.70KB | ▼ 74.24% |
assets/banner-772x250.png | 212.01KB | 44.58KB | ▼ 78.97% |
wordpress-sdk-master/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
assets/screenshot-4.png | 480.86KB | 152.86KB | ▼ 68.21% |
assets/screenshot-5.png | 357.63KB | 97.64KB | ▼ 72.70% |