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.17MB] [CPU: ▼1.08ms] Passed 4 tests
Analyzing server-side resources used by Getty Images
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.15 | 35.04 ▼2.65 |
Dashboard /wp-admin | 3.45 ▲0.14 | 42.73 ▼5.46 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 47.56 ▲0.22 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 97.18 ▲9.81 |
Media Library /wp-admin/upload.php | 3.48 ▲0.25 | 37.07 ▲3.57 |
Server storage [IO: ▲1.78MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 67 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Getty Images: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,799 ▲38 | 14.04 ▼0.31 | 1.57 ▼0.02 | 37.67 ▼4.77 |
Dashboard /wp-admin | 2,202 ▲22 | 5.62 ▼0.00 | 91.01 ▲4.14 | 42.43 ▼0.77 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.02 ▲0.03 | 38.05 ▲3.06 | 37.49 ▲2.81 |
Add New Post /wp-admin/post-new.php | 6,403 ▲4,877 | 23.28 ▲0.13 | 924.08 ▲246.21 | 38.18 ▼13.73 |
Media Library /wp-admin/upload.php | 1,485 ▲91 | 4.23 ▲0.00 | 97.00 ▲1.09 | 45.77 ▲1.16 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
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 items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/getty-images/getty-templates.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/getty-images/getty-images.php:72
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: image library, getty, media, images
getty-images/getty-images.php Passed 13 tests
The entry point to "Getty Images" version 4.1.0 is a PHP file that has certain tags in its header comment area
37 characters long description:
Integrate your site with Getty Images
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Please make sure to remedy the following
- Do not distribute dangerous files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/getty-images/dev_local_setup.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 19 | 918 | 1,114 | 4,663 |
SVG | 5 | 6 | 2 | 1,334 |
CSS | 12 | 183 | 46 | 1,333 |
PHP | 2 | 246 | 195 | 1,193 |
HTML | 2 | 12 | 0 | 48 |
DOS Batch | 1 | 1 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 50.00 |
▷ Minimum class complexity | 50.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 2.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.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 | 25 | |
▷ Static methods | 2 | 8.00% |
▷ Public methods | 22 | 88.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 12.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 Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
10 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/x-2x.png | 0.21KB | 0.21KB | ▼ 3.64% |
images/getty-logo-large.png | 17.15KB | 10.80KB | ▼ 37.06% |
images/getty-logo.png | 3.07KB | 2.50KB | ▼ 18.65% |
images/getty-images-logo.png | 6.99KB | 5.34KB | ▼ 23.59% |
images/arrows-small-2x.png | 0.95KB | 0.83KB | ▼ 12.90% |