Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▲0.41ms] Passed 4 tests
This is a short check of server-side resources used by Picturefill.WP
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 45.88 ▲1.68 |
Dashboard /wp-admin | 3.39 ▲0.08 | 51.10 ▼3.03 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 50.76 ▲2.71 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 95.13 ▲5.02 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 40.10 ▲0.28 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
picturefill_wp_update_timestamp |
picturefill_wp_version |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Picturefill.WP: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 13.18 ▼1.40 | 1.61 ▼0.56 | 40.46 ▼7.10 |
Dashboard /wp-admin | 2,203 ▲12 | 5.85 ▲0.91 | 110.49 ▼7.01 | 42.54 ▼1.58 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.00 ▼0.01 | 39.07 ▲2.85 | 34.76 ▼0.24 |
Add New Post /wp-admin/post-new.php | 1,538 ▲24 | 23.34 ▲5.72 | 595.18 ▼86.10 | 62.72 ▲9.48 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.25 ▼0.03 | 95.90 ▼11.14 | 40.04 ▼6.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, 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
- 15× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to a member function get_picture_attribute_string() on null in wp-content/plugins/picturefillwp/inc/templates/min/picture-template.php:1
- > PHP Fatal error
Uncaught Error: Call to a member function get_image_src() on null in wp-content/plugins/picturefillwp/inc/templates/source-template.php:1
- > PHP Notice
Undefined variable: view_picturefill_wp in wp-content/plugins/picturefillwp/inc/templates/picture-template.php on line 1
- > PHP Notice
Undefined variable: view_picturefill_wp in wp-content/plugins/picturefillwp/inc/templates/noscript-template.php on line 1
- > PHP Notice
Undefined variable: view_picturefill_wp in wp-content/plugins/picturefillwp/inc/templates/fallback-source-template.php on line 1
- > PHP Fatal error
Uncaught Error: Call to a member function get_original_image_src() on null in wp-content/plugins/picturefillwp/inc/templates/fallback-source-template.php:1
- > PHP Notice
Undefined variable: view_picturefill_wp in wp-content/plugins/picturefillwp/inc/templates/min/source-template.php on line 1
- > PHP Fatal error
Uncaught Error: Call to a member function get_image_src() on null in wp-content/plugins/picturefillwp/inc/templates/min/source-template.php:1
- > PHP Fatal error
Uncaught Error: Call to a member function get_picture_attribute_string() on null in wp-content/plugins/picturefillwp/inc/templates/picture-template.php:1
- > PHP Fatal error
require_once(): Failed opening required 'PICTUREFILL_WP_PATHinc/class-picturefill-wp.php' (include_path='.:/usr/share/php') in wp-content/plugins/picturefillwp/inc/functions-picturefill-wp.php on line 5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 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
8 plugin tags: picturefilljs, responsive images, high dpi, hdpi, retina...
picturefillwp/picturefill-wp.php 92% from 13 tests
"Picturefill.WP" version 1.3.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("picturefillwp.php" instead of "picturefill-wp.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin768 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 140 | 26 | 711 |
JavaScript | 2 | 12 | 8 | 57 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 26.25 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 2.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 66 | |
▷ Static methods | 12 | 18.18% |
▷ Public methods | 55 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 16.67% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin