Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼6.10ms] Passed 4 tests
This is a short check of server-side resources used by flickree
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 34.82 ▼9.35 |
Dashboard /wp-admin | 3.32 ▲0.02 | 45.90 ▼1.75 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 46.02 ▼3.61 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 87.16 ▼8.48 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.62 ▼2.95 |
flickree /wp-admin/options-general.php?page=flickree/index.php | 3.19 | 31.59 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for flickree
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,892 ▲157 | 13.66 ▼1.01 | 4.74 ▲2.99 | 37.84 ▼9.69 |
Dashboard /wp-admin | 2,212 ▲24 | 5.83 ▲0.95 | 96.99 ▼0.73 | 38.54 ▼5.21 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 1.99 ▼0.02 | 33.58 ▼3.70 | 34.14 ▲1.19 |
Add New Post /wp-admin/post-new.php | 1,535 ▲2 | 21.87 ▼1.24 | 663.50 ▼6.39 | 55.53 ▲0.27 |
Media Library /wp-admin/upload.php | 1,394 ▲3 | 4.19 ▲0.00 | 96.74 ▼4.58 | 43.17 ▲2.19 |
flickree /wp-admin/options-general.php?page=flickree/index.php | 820 | 2.20 | 25.42 | 24.11 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=flickree/index.php
- > Notice in wp-content/plugins/flickree/Admin.php+122
Undefined index: apikey
- > GET request to /wp-admin/options-general.php?page=flickree/index.php
- > Notice in wp-content/plugins/flickree/Admin.php+123
Undefined index: report
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
Please fix the following
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'FlickreeApi' not found in wp-content/plugins/flickree/classes/Group.class.php:3
- > PHP Fatal error
Uncaught Error: Class 'FlickreeApi' not found in wp-content/plugins/flickree/classes/Photoset.class.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/flickree/index.php:30
- > PHP Fatal error
Uncaught Error: Class 'FlickreeApi' not found in wp-content/plugins/flickree/classes/Photo.class.php:3
- > PHP Fatal error
Uncaught Error: Class 'FlickreeApi' not found in wp-content/plugins/flickree/classes/Gallery.class.php:3
- > PHP Fatal error
Uncaught Error: Class 'FlickreeApi' not found in wp-content/plugins/flickree/classes/Search.class.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 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
These attributes need your attention:
- Plugin Name: Please specify the plugin name on the first line (
=== flickree ===
) - Tested up to: Invalid plugin version format
- Screenshots: Please add images for these screenshots: #1 (The flickree editor button), #2 (The editor dialog for inserting a single photo), #3 (The editor dialog for inserting photos from a photoset), #4 (The editor dialog for inserting photos from a gallery), #5 (The editor dialog for inserting photos from a group), #6 (The editor dialog for inserting photos based on a text and or tag search)
flickree/index.php 92% from 13 tests
The main PHP file in "flickree" ver. 0.5 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("flickree.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,319 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 222 | 494 | 950 |
HTML | 1 | 11 | 0 | 167 |
CSS | 1 | 4 | 0 | 157 |
JavaScript | 2 | 0 | 1 | 33 |
Mustache | 4 | 0 | 0 | 12 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 12.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 106.00 |
Average method complexity | 3.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 1 | 7.14% |
▷ Concrete classes | 13 | 92.86% |
▷ Final classes | 0 | 0.00% |
Methods | 62 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 36 | 58.06% |
▷ Protected methods | 26 | 41.94% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 82 | |
▷ Global constants | 5 | 6.10% |
▷ Class constants | 77 | 93.90% |
▷ Public constants | 77 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.13MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-4.png | 23.44KB | 7.64KB | ▼ 67.40% |
screenshot-5.png | 23.15KB | 7.57KB | ▼ 67.32% |
screenshot-3.png | 23.66KB | 7.78KB | ▼ 67.12% |
screenshot-6.png | 23.81KB | 7.78KB | ▼ 67.32% |
tinymce.png | 0.28KB | 0.42KB | 0.00% |