Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-content/plugins/cdwpflickr/index.php+30
Methods with the same name as their class will not be constructors in a future version of PHP; FlickrManager has a deprecated constructor
Server metrics [RAM: ▼1.75MB] [CPU: ▼49.56ms] Passed 4 tests
An overview of server-side resources used by CdWPFlickr
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.24 ▼1.22 | 5.33 ▼36.42 |
Dashboard /wp-admin | 2.26 ▼1.05 | 6.53 ▼42.32 |
Posts /wp-admin/edit.php | 2.26 ▼1.10 | 6.31 ▼41.27 |
Add New Post /wp-admin/post-new.php | 2.26 ▼3.63 | 7.29 ▼78.22 |
Media Library /wp-admin/upload.php | 2.26 ▼0.97 | 5.28 ▼31.17 |
CdWPFlickr /wp-admin/options-general.php?page=cdwpflickr/index.php | 2.26 | 6.33 |
Server storage [IO: ▲0.99MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 92 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_flickr |
wp_flickr_token |
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for CdWPFlickr
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲94 | 14.48 ▲0.11 | 2.16 ▲0.32 | 43.22 ▼5.33 |
Dashboard /wp-admin | 2,210 ▲19 | 5.89 ▲0.01 | 98.81 ▼2.14 | 37.09 ▼3.62 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 2.06 ▲0.02 | 34.90 ▼3.96 | 32.05 ▼4.03 |
Add New Post /wp-admin/post-new.php | 1,535 ▲16 | 22.10 ▼1.47 | 575.07 ▼35.76 | 49.71 ▼5.37 |
Media Library /wp-admin/upload.php | 1,386 ▼2 | 4.30 ▲0.01 | 101.36 ▼4.54 | 42.85 ▲0.94 |
CdWPFlickr /wp-admin/options-general.php?page=cdwpflickr/index.php | 900 | 4.61 | 46.30 | 51.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/cdwpflickr/index.php+30
Methods with the same name as their class will not be constructors in a future version of PHP; FlickrManager has a deprecated constructor
- Zombie tables detected upon uninstall: 1 table
- wp_flickr_token
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=cdwpflickr/index.php
- > Deprecated in wp-content/plugins/cdwpflickr/index.php+30
Methods with the same name as their class will not be constructors in a future version of PHP; FlickrManager has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=cdwpflickr/index.php
- > Deprecated in wp-content/plugins/cdwpflickr/lib/inc.cdflickr.php+16
Methods with the same name as their class will not be constructors in a future version of PHP; CdFlickr has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=cdwpflickr/index.php
- > Deprecated in wp-content/plugins/cdwpflickr/lib/inc.cdflickr.php+2106
Methods with the same name as their class will not be constructors in a future version of PHP; phpFlickr_pager has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=cdwpflickr/index.php
- > Deprecated in wp-content/plugins/cdwpflickr/BasePlugin.php+4
Methods with the same name as their class will not be constructors in a future version of PHP; BasePlugin has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=cdwpflickr/index.php
- > Deprecated in wp-content/plugins/cdwpflickr/lib/inc.templater.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; Page has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=cdwpflickr/index.php
- > Deprecated in wp-content/plugins/cdwpflickr/overlays/HighslideOverlay.php+6
Methods with the same name as their class will not be constructors in a future version of PHP; HighslideOverlay has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=cdwpflickr/index.php
- > Deprecated in wp-content/plugins/cdwpflickr/Overlay.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; Overlay has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=cdwpflickr/index.php
- > Deprecated in wp-content/plugins/cdwpflickr/overlays/GalleriaOverlay.php+5
Methods with the same name as their class will not be constructors in a future version of PHP; GalleriaOverlay has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=cdwpflickr/index.php
- > Deprecated in wp-content/plugins/cdwpflickr/overlays/LightboxOverlay.php+5
Methods with the same name as their class will not be constructors in a future version of PHP; LightboxOverlay has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=cdwpflickr/index.php
- > Deprecated in wp-content/plugins/cdwpflickr/overlays/WordpressOverlay.php+5
Methods with the same name as their class will not be constructors in a future version of PHP; WordpressOverlay has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=cdwpflickr/index.php
- > Deprecated in wp-content/plugins/cdwpflickr/overlays/ThickboxOverlay.php+5
Methods with the same name as their class will not be constructors in a future version of PHP; ThickboxOverlay has a deprecated constructor
SRP 0% 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 items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/cdwpflickr/overlays/HighslideOverlay.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/cdwpflickr/BasePlugin.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/cdwpflickr/templates/FlickrPage.php:9
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
- > GET request to /wp-admin/options-general.php?page=cdwpflickr/index.php
- > Network (severe)
wp-admin/images/fade-butt.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% 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 require attention:
- Screenshots: These screenshots require images: #1 (The upload panel available from within the media button), #2 (The added media button)
cdwpflickr/index.php 92% from 13 tests
The main file in "CdWPFlickr" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("cdwpflickr.php" instead of "index.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
There were no executable files found in this plugin6,863 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 570 | 817 | 3,839 |
CSS | 6 | 69 | 74 | 1,286 |
PO File | 5 | 500 | 602 | 990 |
JavaScript | 13 | 193 | 42 | 748 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 28.24 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 155.00 |
Average method complexity | 2.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 67.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 305 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 305 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 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
12 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/highslide/scrollarrows.png | 6.31KB | 2.55KB | ▼ 59.57% |
images/highslide/outlines/glossy-dark.png | 2.73KB | 1.28KB | ▼ 53.13% |
images/highslide/outlines/rounded-white.png | 2.00KB | 1.83KB | ▼ 8.39% |
images/highslide/closeX.png | 3.58KB | 0.69KB | ▼ 80.76% |
images/highslide/outlines/beveled.png | 1.80KB | 1.92KB | 0.00% |