10% cdwpflickr

Code Review | CdWPFlickr

WordPress plugin CdWPFlickr scored 10% from 54 tests.

About plugin

  • Plugin page: cdwpflickr
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.0.0
  • WordPress version: 6.3.1
  • First release: Sep 29, 2014
  • Latest release: Sep 29, 2014
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: cidy0106 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 823 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.24 ▼1.225.33 ▼36.42
Dashboard /wp-admin2.26 ▼1.056.53 ▼42.32
Posts /wp-admin/edit.php2.26 ▼1.106.31 ▼41.27
Add New Post /wp-admin/post-new.php2.26 ▼3.637.29 ▼78.22
Media Library /wp-admin/upload.php2.26 ▼0.975.28 ▼31.17
CdWPFlickr /wp-admin/options-general.php?page=cdwpflickr/index.php2.266.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9414.48 ▲0.112.16 ▲0.3243.22 ▼5.33
Dashboard /wp-admin2,210 ▲195.89 ▲0.0198.81 ▼2.1437.09 ▼3.62
Posts /wp-admin/edit.php2,090 ▲12.06 ▲0.0234.90 ▼3.9632.05 ▼4.03
Add New Post /wp-admin/post-new.php1,535 ▲1622.10 ▼1.47575.07 ▼35.7649.71 ▼5.37
Media Library /wp-admin/upload.php1,386 ▼24.30 ▲0.01101.36 ▼4.5442.85 ▲0.94
CdWPFlickr /wp-admin/options-general.php?page=cdwpflickr/index.php9004.6146.3051.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

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)
Please take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP165708173,839
CSS669741,286
PO File5500602990
JavaScript1319342748

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity28.24
▷ Minimum class complexity1.00
▷ Maximum class complexity155.00
Average method complexity2.52
▷ Minimum method complexity1.00
▷ Maximum method complexity67.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes17
▷ Abstract classes00.00%
▷ Concrete classes17100.00%
▷ Final classes00.00%
Methods305
▷ Static methods00.00%
▷ Public methods305100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
images/highslide/scrollarrows.png6.31KB2.55KB▼ 59.57%
images/highslide/outlines/glossy-dark.png2.73KB1.28KB▼ 53.13%
images/highslide/outlines/rounded-white.png2.00KB1.83KB▼ 8.39%
images/highslide/closeX.png3.58KB0.69KB▼ 80.76%
images/highslide/outlines/beveled.png1.80KB1.92KB0.00%