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
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼6.78ms] Passed 4 tests
This is a short check of server-side resources used by Custom Image Sizes by 99 Robots
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 45.70 ▲4.94 |
Dashboard /wp-admin | 3.36 ▲0.01 | 45.92 ▼17.05 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 50.05 ▼0.52 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 82.41 ▼9.66 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 36.74 ▲0.12 |
Custom Image Sizes /wp-admin/options-general.php?page=nnr-cis-settings-page | 3.30 | 33.39 |
Server storage [IO: ▲1.67MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Custom Image Sizes by 99 Robots
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲22 | 14.04 ▼0.32 | 1.64 ▼0.23 | 39.53 ▼3.03 |
Dashboard /wp-admin | 2,199 ▲25 | 5.61 ▲0.07 | 93.49 ▼5.51 | 41.76 ▼5.29 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.03 ▲0.06 | 33.63 ▼3.54 | 33.91 ▼0.13 |
Add New Post /wp-admin/post-new.php | 1,541 ▲13 | 23.42 ▲0.19 | 664.60 ▼102.12 | 72.38 ▲13.38 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.20 ▲0.03 | 97.45 ▼11.73 | 43.55 ▼3.79 |
Custom Image Sizes /wp-admin/options-general.php?page=nnr-cis-settings-page | 1,260 | 2.46 | 43.86 | 77.84 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/custom-image-sizes-by-99-robots/views/header.php:18
- > PHP Fatal error
Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/custom-image-sizes-by-99-robots/views/header.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/custom-image-sizes-by-99-robots/views/sidebar.php:23
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
- > GET request to /wp-admin/options-general.php?page=nnr-cis-settings-page
- > Network (severe)
http://feeds.feedburner.com/99robots?format=sigpro - Failed to load resource: net::ERR_BLOCKED_BY_RESPONSE.NotSameSite
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Donate link: Please fix this invalid url: ""
- Contributors: The plugin contributors field is missing
custom-image-sizes-by-99-robots/99robots-custom-image-sizes.php 77% from 13 tests
"Custom Image Sizes by 99 Robots" version 1.2.10'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: 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 folder does not exist ("/languages")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("custom-image-sizes-by-99-robots.php" instead of "99robots-custom-image-sizes.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin1,571 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 111 | 256 | 680 |
SVG | 1 | 0 | 0 | 640 |
CSS | 3 | 46 | 6 | 218 |
JavaScript | 2 | 15 | 13 | 33 |
PHP code Passed 2 tests
A short review of 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.25 |
Average class complexity | 32.00 |
▷ Minimum class complexity | 32.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 2.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.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 | 17 | |
▷ Static methods | 1 | 5.88% |
▷ Public methods | 15 | 88.24% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 11.76% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
5 PNG files occupy 0.23MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/ad-plugin-request.png | 14.13KB | 5.42KB | ▼ 61.62% |
assets/screenshot-2.png | 77.10KB | 22.98KB | ▼ 70.20% |
img/logo.png | 2.74KB | 2.01KB | ▼ 26.60% |
assets/screenshot-1.png | 123.97KB | 33.45KB | ▼ 73.02% |
img/logo_v2.png | 22.30KB | 8.22KB | ▼ 63.13% |