83% wp-flickr-more-images

Code Review | WP Flickr more images

WordPress plugin WP Flickr more images scored83%from 54 tests.

About plugin

  • Plugin page: wp-flickr-more-im...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.1
  • WordPress version: 6.3.1
  • First release: Feb 5, 2015
  • Latest release: Feb 7, 2015
  • Number of updates: 8
  • Update frequency: every 0.4 days
  • Top authors: raidenz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /839 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.23ms] Passed 4 tests

Analyzing server-side resources used by WP Flickr more images
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.04 ▼2.57
Dashboard /wp-admin3.33 ▼0.0143.88 ▼11.72
Posts /wp-admin/edit.php3.39 ▲0.0346.64 ▲0.94
Add New Post /wp-admin/post-new.php5.92 ▲0.0390.57 ▼5.74
Media Library /wp-admin/upload.php3.26 ▲0.0333.56 ▼0.87

Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_wpboot_moremlickr
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

WP Flickr more images: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,911 ▲16513.73 ▼0.645.30 ▲3.5453.19 ▲12.94
Dashboard /wp-admin2,206 ▲184.88 ▼0.0099.64 ▼17.5339.32 ▼4.61
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0340.82 ▲0.2035.60 ▼2.72
Add New Post /wp-admin/post-new.php1,533 ▲1123.08 ▼0.34597.48 ▼59.8459.25 ▼3.79
Media Library /wp-admin/upload.php1,388 ▲34.23 ▲0.0194.99 ▼3.3445.13 ▲1.15

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_wpboot_moremlickr

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-flickr-more-images/wpboot_flickr_more_images.php:35

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% 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
Attributes that need to be fixed: You can take inspiration from this readme.txt

wp-flickr-more-images/wpboot_flickr_more_images.php 85% from 13 tests

The primary PHP file in "WP Flickr more images" version 1.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-flickr-more-images.php" instead of "wpboot_flickr_more_images.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin105 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1256389
CSS1008
JavaScript1088

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity3.25
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.27MB with 0.19MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
flickr1.png275.37KB77.34KB▼ 71.91%