Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/flickr-comments/flickr-comments.php+33
date_default_timezone_set(): Timezone ID '' is invalid
Server metrics [RAM: ▼1.97MB] [CPU: ▼59.97ms] Passed 4 tests
An overview of server-side resources used by Flickr Comments
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.20 ▼37.87 |
Dashboard /wp-admin | 2.05 ▼1.30 | 5.80 ▼60.54 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 6.05 ▼42.85 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.17 ▼98.60 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 6.23 ▼31.70 |
Flickr Comments /wp-admin/options-general.php?page=flickr-comments/flickr-comments.php | 2.05 | 6.22 |
Server storage [IO: ▲0.70MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
flickr_comments_config |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Flickr Comments
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲11 | 14.62 ▲0.24 | 1.66 ▼0.46 | 17.27 ▼20.69 |
Dashboard /wp-admin | 2,222 ▲19 | 4.87 ▼1.00 | 104.56 ▲4.13 | 40.98 ▼0.31 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 2.04 ▼0.00 | 38.34 ▼2.24 | 37.67 ▲2.41 |
Add New Post /wp-admin/post-new.php | 1,548 ▲3 | 23.45 ▲0.10 | 660.73 ▼5.92 | 105.63 ▲35.51 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.23 ▲0.01 | 111.98 ▼1.92 | 49.82 ▼0.27 |
Flickr Comments /wp-admin/options-general.php?page=flickr-comments/flickr-comments.php | 800 | 2.02 | 25.24 | 29.23 |
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
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/flickr-comments/flickr-comments.php+33
date_default_timezone_set(): Timezone ID '' is invalid
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- flickr_comments_config
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=flickr-comments/flickr-comments.php
- > Notice in wp-content/plugins/flickr-comments/flickr-comments.php+33
date_default_timezone_set(): Timezone ID '' is invalid
- > GET request to /wp-admin/options-general.php?page=flickr-comments/flickr-comments.php
- > Notice in wp-content/plugins/flickr-comments/flickr-comments.php+39
Undefined index: frob
- > GET request to /wp-admin/options-general.php?page=flickr-comments/flickr-comments.php
- > Notice in wp-content/plugins/flickr-comments/flickr-comments.php+64
Undefined index: flickr_comments_API
- > GET request to /wp-admin/options-general.php?page=flickr-comments/flickr-comments.php
- > Notice in wp-content/plugins/flickr-comments/flickr-comments.php+85
Undefined index: manual_update
- 4 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=flickr-comments/flickr-comments.php
- > Notice in wp-content/plugins/flickr-comments/flickr-comments.php+130
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/flickr-comments/flickr-comments.php:32
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Donate link: Invalid URI ("")
flickr-comments/flickr-comments.php Passed 13 tests
The primary PHP file in "Flickr Comments" version 1.24 is used by WordPress to initiate all plugin functionality
116 characters long description:
Retrieves comments from your Flickr account to your Wordpress photoblog in a specified Time Frame and Time Interval.
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
Everything looks great! No dangerous files found in this plugin1,565 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 383 | 362 | 1,565 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 100.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 187.00 |
Average method complexity | 1.99 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.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 | 201 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 201 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 17 | |
▷ Named functions | 17 | 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 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.58MB with 0.39MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot/screenshot-4.png | 106.44KB | 36.31KB | ▼ 65.88% |
screenshot/screenshot-1.png | 105.47KB | 37.46KB | ▼ 64.49% |
screenshot/screenshot-6.png | 113.85KB | 32.69KB | ▼ 71.28% |
screenshot/screenshot-3.png | 47.64KB | 17.41KB | ▼ 63.45% |
screenshot/screenshot-5.png | 145.89KB | 47.11KB | ▼ 67.71% |