Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.32MB] [CPU: ▼13.50ms] Passed 4 tests
Server-side resources used by SEO Images Reloaded
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.44 ▼0.03 | 34.09 ▼5.11 |
Dashboard /wp-admin | 3.32 ▲0.02 | 48.11 ▼1.12 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 45.82 ▼0.31 |
Add New Post /wp-admin/post-new.php | 4.61 ▼1.28 | 41.75 ▼46.33 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.19 ▼1.44 |
SEO Images /wp-admin/options-general.php?page=seo-images-reloaded | 3.27 | 31.36 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options |
---|
seo_images_reloaded_options |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for SEO Images Reloaded
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 14.82 ▲0.46 | 1.69 ▼0.10 | 45.36 ▲1.32 |
Dashboard /wp-admin | 2,215 ▲27 | 5.89 ▲1.01 | 101.08 ▼13.96 | 43.64 ▲0.89 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.01 ▲0.02 | 32.76 ▼4.33 | 32.98 ▼3.29 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.03 ▼0.11 | 667.11 ▼6.39 | 51.04 ▼11.16 |
Media Library /wp-admin/upload.php | 1,394 ▲6 | 4.28 ▲0.14 | 94.39 ▼13.24 | 42.04 ▼3.13 |
SEO Images /wp-admin/options-general.php?page=seo-images-reloaded | 964 | 2.05 | 23.24 | 26.82 |
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
These items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- seo_images_reloaded_options
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/seo-images-reloaded/admin/partials/form.php:2
- > 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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: seo, pictures, images, photos
seo-images-reloaded/seo-images-reloaded.php 92% from 13 tests
"SEO Images Reloaded" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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
No dangerous file extensions were detected602 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 59 | 11 | 368 |
PO File | 3 | 97 | 340 | 234 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 5.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 2 | 7.69% |
▷ Public methods | 21 | 80.77% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 19.23% |
Functions | 3 | |
▷ Named functions | 3 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/arrows.png | 0.48KB | 0.24KB | ▼ 50.81% |
images/icon.png | 1.50KB | 0.76KB | ▼ 49.22% |
images/logo.png | 2.66KB | 1.51KB | ▼ 43.40% |