84% wp-flickr-images

Code Review | Wp Flickr Images

WordPress plugin Wp Flickr Images scored84%from 54 tests.

About plugin

  • Plugin page: wp-flickr-images
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.9
  • WordPress version: 6.3.1
  • First release: Apr 28, 2014
  • Latest release: Apr 28, 2014
  • Number of updates: 6
  • Update frequency: every 0.5 days
  • Top authors: fabwebstudio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /931 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.05MB] [CPU: ▼5.24ms] Passed 4 tests

Analyzing server-side resources used by Wp Flickr Images
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0330.57 ▼6.32
Dashboard /wp-admin3.38 ▲0.0346.61 ▼12.68
Posts /wp-admin/edit.php3.43 ▲0.0745.50 ▲0.96
Add New Post /wp-admin/post-new.php5.96 ▲0.0786.27 ▼2.68
Media Library /wp-admin/upload.php3.30 ▲0.0734.23 ▲0.73
Wp Flickr Images /wp-admin/options-general.php?page=flickr-api-data3.2729.80

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Wp Flickr Images
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲4914.40 ▼0.211.57 ▼0.1441.73 ▲1.54
Dashboard /wp-admin2,201 ▲275.50 ▼0.0880.53 ▼4.8538.26 ▼4.79
Posts /wp-admin/edit.php2,106 ▲62.04 ▲0.0736.21 ▲0.3937.80 ▲4.04
Add New Post /wp-admin/post-new.php6,228 ▲4,70026.00 ▲2.99918.17 ▲265.0163.46 ▲9.13
Media Library /wp-admin/upload.php1,406 ▲64.20 ▲0.0199.19 ▲0.5946.14 ▼3.41
Wp Flickr Images /wp-admin/options-general.php?page=flickr-api-data7952.0325.5126.48

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-flickr-images/wp-flickr-images.php:417

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Donate link: Please fix this invalid url: ""
Please take inspiration from this readme.txt

wp-flickr-images/wp-flickr-images.php Passed 13 tests

Analyzing the main PHP file in "Wp Flickr Images" version 1.1
43 characters long description:
Flickr images based on particular keywords.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin367 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP17226321
CSS13046

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity3.71
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin