84% embed-pro-flickr

Code Review | Embed Pro Flickr

WordPress plugin Embed Pro Flickr scored84%from 54 tests.

About plugin

  • Plugin page: embed-pro-flickr
  • Plugin version: 1.0
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Apr 25, 2023
  • Latest release: Apr 26, 2023
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: jbd7 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /111 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼5.82ms] Passed 4 tests

This is a short check of server-side resources used by Embed Pro Flickr
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1338.44 ▼3.07
Dashboard /wp-admin3.45 ▲0.1046.26 ▼9.85
Posts /wp-admin/edit.php3.56 ▲0.2047.59 ▲5.72
Add New Post /wp-admin/post-new.php6.03 ▲0.1491.44 ▼12.36
Media Library /wp-admin/upload.php3.37 ▲0.1436.31 ▲1.99
Embed Pro Flickr /wp-admin/options-general.php?page=embed-pro-flickr/embed-pro-flickr.php3.3435.06

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Embed Pro Flickr
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9413.17 ▼1.204.84 ▲3.0041.13 ▼11.36
Dashboard /wp-admin2,207 ▲164.85 ▼0.03109.88 ▲9.1741.08 ▲2.58
Posts /wp-admin/edit.php2,093 ▲12.12 ▲0.0740.91 ▲0.8136.79 ▲1.55
Add New Post /wp-admin/post-new.php1,545 ▲2618.30 ▼4.83596.67 ▼14.6555.98 ▲7.19
Media Library /wp-admin/upload.php1,386 ▼24.24 ▲0.0297.97 ▼1.7042.36 ▲0.21
Embed Pro Flickr /wp-admin/options-general.php?page=embed-pro-flickr/embed-pro-flickr.php1,5532.0725.3343.96

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 | 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× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/embed-pro-flickr/embed-pro-flickr.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Tags: Please delete some tags, you are using 14 tag instead of maximum 10
You can take inspiration from this readme.txt

embed-pro-flickr/embed-pro-flickr.php Passed 13 tests

The entry point to "Embed Pro Flickr" version 1.0 is a PHP file that has certain tags in its header comment area
131 characters long description:
Embed Pro Flickr helps you customize Flickr photos embedded in your WordPress site, inproving user experience, performance and SEO.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected814 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1173140750
CSS116464

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions21
▷ Named functions1676.19%
▷ Anonymous functions523.81%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin