77% jewel-flickr

Code Review | Jewel Flickr

WordPress plugin Jewel Flickr scored77%from 54 tests.

About plugin

  • Plugin page: jewel-flickr
  • Plugin version: 1.0.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Mar 8, 2017
  • Latest release: Aug 21, 2023
  • Number of updates: 13
  • Update frequency: every 180.8 days
  • Top authors: Litonice13 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /917 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.73MB] [CPU: ▲1,079.61ms] 50% from 4 tests

Analyzing server-side resources used by Jewel Flickr
Please have a look at the following items
  • CPU: You should keep total CPU usage under 500.00ms (currently 1,244.59ms on /wp-admin/options-general.php?page=jewel-flickr-recommended-plugins)
  • Extra CPU: Try to keep extra CPU usage under 200.00ms (currently 1,079.61ms on /wp-admin/options-general.php?page=jewel-flickr-recommended-plugins)
PageMemory (MB)CPU Time (ms)
Home /4.23 ▲0.77654.69 ▲614.12
Dashboard /wp-admin4.17 ▲0.871,523.28 ▲1,473.29
Posts /wp-admin/edit.php4.11 ▲0.751,287.65 ▲1,242.91
Add New Post /wp-admin/post-new.php6.57 ▲0.681,343.16 ▲1,241.60
Media Library /wp-admin/upload.php3.94 ▲0.711,253.28 ▲1,219.80
Recommended /wp-admin/options-general.php?page=jewel-flickr-recommended-plugins3.921,244.59

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 44 new files
Database: no new tables, 14 new options
New WordPress options
jlt_flickr_notice_subscribe
widget_recent-posts
widget_jewel-flickr-widget
jlt_flickr_notice_what_we_collect
jlt_flickr_notice_ask_for_rating
jlt_flickr_sheet_promo_data
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
...

Browser metrics Passed 4 tests

An overview of browser requirements for Jewel Flickr
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,965 ▲23013.29 ▼1.011.76 ▼0.0738.34 ▼11.28
Dashboard /wp-admin2,370 ▲1825.95 ▲1.0799.33 ▼9.3640.63 ▼4.22
Posts /wp-admin/edit.php2,179 ▲902.06 ▲0.0537.90 ▲0.9432.36 ▼3.59
Add New Post /wp-admin/post-new.php1,627 ▲8523.42 ▲5.20634.30 ▼11.4755.72 ▲2.59
Media Library /wp-admin/upload.php1,475 ▲904.15 ▼0.04105.14 ▲2.2940.66 ▼4.03
Recommended /wp-admin/options-general.php?page=jewel-flickr-recommended-plugins1,2491.9827.2328.89

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 14 options in the database
    • jlt_flickr_notice_what_we_collect
    • jlt_flickr_notice_subscribe
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • jlt_flickr_sheet_promo_data_hash
    • db_upgraded
    • jewel_flickr_version
    • widget_jewel-flickr-widget
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/jewel-flickr/jewel-flickr.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/jewel-flickr/Inc/Classes/Flickr_Widget.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'JLTFLICKR\\Inc\\Classes\otifications\\Model\\Popup' not found in wp-content/plugins/jewel-flickr/Inc/Classes/Notifications/Upgrade_Notice.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'JLTFLICKR\\Inc\\Classes\otifications\\Model\otice' not found in wp-content/plugins/jewel-flickr/Inc/Classes/Notifications/Ask_For_Rating.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'JLTFLICKR\\Inc\\Classes\otifications\\Model\otice' not found in wp-content/plugins/jewel-flickr/Inc/Classes/Notifications/Subscribe.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'JLTFLICKR\\Inc\\Classes\otifications\\Model\otice' not found in wp-content/plugins/jewel-flickr/Inc/Classes/Notifications/What_We_Collect.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'JLTFLICKR\\Libs\\RowLinks' not found in wp-content/plugins/jewel-flickr/Inc/Classes/Row_Links.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'JLTFLICKR\\Libs\\Upgrader' not found in wp-content/plugins/jewel-flickr/Inc/Classes/Upgrade_Plugin.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'JLTFLICKR\\Libs\\Recommended' not found in wp-content/plugins/jewel-flickr/Inc/Classes/Recommended_Plugins.php:12

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
    • > GET request to /wp-admin/options-general.php?page=jewel-flickr-recommended-plugins
    • > Network (severe)
    https://ps.w.org/ultimate-blocks-for-gutenberg/assets/icon-128x128.png - Failed to load resource: the server responded with a status of 404 ()

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
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 19 tag instead of maximum 10
The official readme.txt might help

jewel-flickr/jewel-flickr.php 85% from 13 tests

The main PHP script in "Jewel Flickr" version 1.0.5 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages/")
  • Domain Path: Prefix the domain path with a forward slash character ("/languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin3,897 lines of code in 43 files:
LanguageFilesBlank linesComment linesLines of code
PHP387621,4733,097
CSS311814646
JavaScript2159154

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity10.48
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.43
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces8
Interfaces0
Traits2
Classes27
▷ Abstract classes414.81%
▷ Concrete classes2385.19%
▷ Final classes14.35%
Methods194
▷ Static methods3216.49%
▷ Public methods19198.45%
▷ Protected methods10.52%
▷ Private methods21.03%
Functions9
▷ Named functions555.56%
▷ Anonymous functions444.44%
Constants16
▷ Global constants1593.75%
▷ Class constants16.25%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin