Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▲1.53ms] Passed 4 tests
This is a short check of server-side resources used by SEO Defend
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 38.67 ▼4.69 |
Dashboard /wp-admin | 3.29 ▼0.01 | 1,358.65 ▲1,307.16 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 49.11 ▲2.27 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 94.36 ▲3.19 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 40.14 ▲5.33 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by SEO Defend
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,000 ▲265 | 13.58 ▼0.79 | 1.66 ▼0.03 | 35.50 ▼12.46 |
Dashboard /wp-admin | 2,394 ▲209 | 4.91 ▼0.99 | 98.45 ▼16.37 | 81.91 ▲35.66 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.97 ▼0.03 | 41.38 ▲2.87 | 35.95 ▲0.90 |
Add New Post /wp-admin/post-new.php | 1,543 ▲24 | 18.07 ▼5.01 | 639.31 ▼32.44 | 50.72 ▲1.22 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.19 ▼0.01 | 94.44 ▼15.95 | 38.79 ▼13.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/seo-defend/seodefend.php:415
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Tags: Too many tags (21 tag instead of maximum 10); only the first 5 tags are used in your directory listing
seo-defend/seodefend.php 92% from 13 tests
The primary PHP file in "SEO Defend" version 1.4 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("seo-defend.php" instead of "seodefend.php")
Code Analysis Passed 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 plugin330 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 56 | 31 | 330 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
PNG files should be compressed to save space and minimize bandwidth usage
30 PNG files occupy 0.10MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/pies/purple/1.png | 3.32KB | 1.37KB | ▼ 58.63% |
img/pies/purple/3.png | 3.68KB | 1.82KB | ▼ 50.64% |
img/pies/grey/1.png | 3.32KB | 1.37KB | ▼ 58.63% |
img/pies/grey/3.png | 3.66KB | 1.79KB | ▼ 51.01% |
img/bars/lightpurple/2.png | 2.21KB | 0.99KB | ▼ 55.28% |