Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/flickr-me/includes/flickr-me-widget.php+100
Methods with the same name as their class will not be constructors in a future version of PHP; wap8_Flickr_Me_Widget has a deprecated constructor
Server metrics [RAM: ▼1.85MB] [CPU: ▼54.16ms] Passed 4 tests
Analyzing server-side resources used by Flickr Me
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.14 ▼1.32 | 5.32 ▼36.77 |
Dashboard /wp-admin | 2.16 ▼1.15 | 6.33 ▼43.41 |
Posts /wp-admin/edit.php | 2.16 ▼1.20 | 6.73 ▼39.41 |
Add New Post /wp-admin/post-new.php | 2.16 ▼3.73 | 7.29 ▼97.06 |
Media Library /wp-admin/upload.php | 2.16 ▼1.07 | 6.01 ▼24.75 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_wap8-flickr-me-widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Flickr Me
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲70 | 13.58 ▼0.79 | 1.83 ▼0.21 | 41.47 ▼8.56 |
Dashboard /wp-admin | 2,206 ▲24 | 5.91 ▲0.09 | 96.10 ▼9.23 | 37.99 ▲0.06 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.05 ▲0.04 | 39.97 ▲4.97 | 34.70 ▲3.86 |
Add New Post /wp-admin/post-new.php | 1,546 ▲4 | 18.22 ▲0.16 | 597.94 ▼40.11 | 57.34 ▼6.56 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.24 ▼0.04 | 101.13 ▲4.18 | 42.53 ▼0.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/flickr-me/includes/flickr-me-widget.php+100
Methods with the same name as their class will not be constructors in a future version of PHP; wap8_Flickr_Me_Widget has a deprecated constructor
- This plugin did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_wap8-flickr-me-widget
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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/flickr-me/includes/flickr-me-widget.php:78
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/flickr-me/flickr-me.php:32
- > 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 issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots do not have images: #1 (Flickr Me Widget), #2 (Example Flickr Me grid feed), #3 (Example Flickr Me stacked feed with title)
flickr-me/flickr-me.php Passed 13 tests
The primary PHP file in "Flickr Me" version 1.0.6 is used by WordPress to initiate all plugin functionality
42 characters long description:
Add a Flickr feed to any widget ready area
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected286 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 90 | 84 | 178 |
PO File | 1 | 18 | 20 | 55 |
CSS | 1 | 0 | 0 | 53 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 14.50 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 4.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 3 | 42.86% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
PNG images were not found in this plugin