90% embed-wider-flickr-photo

Code Review | Embed Wider Flickr Photo

WordPress plugin Embed Wider Flickr Photo scored90%from 54 tests.

About plugin

  • Plugin page: embed-wider-flick...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.1-4.4.2
  • WordPress version: 6.3.1
  • First release: Feb 12, 2016
  • Latest release: Mar 7, 2016
  • Number of updates: 17
  • Update frequency: every 2.3 days
  • Top authors: akky (52.94%)deployer (52.94%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,227 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼8.48ms] Passed 4 tests

This is a short check of server-side resources used by Embed Wider Flickr Photo
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.23 ▼0.45
Dashboard /wp-admin3.31 ▼0.0345.87 ▼13.27
Posts /wp-admin/edit.php3.36 ▲0.0045.24 ▼1.36
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.89 ▼18.84
Media Library /wp-admin/upload.php3.23 ▲0.0034.50 ▲0.23

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Embed Wider Flickr Photo
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.24 ▼1.134.51 ▲2.8344.20 ▼4.06
Dashboard /wp-admin2,209 ▲214.83 ▼0.04108.62 ▲3.1940.08 ▲2.80
Posts /wp-admin/edit.php2,089 ▲32.15 ▲0.1235.56 ▼0.6732.32 ▼0.24
Add New Post /wp-admin/post-new.php1,533 ▲1923.32 ▲5.82660.81 ▼28.3061.85 ▲2.49
Media Library /wp-admin/upload.php1,388 ▼04.19 ▼0.0696.95 ▼0.8842.57 ▼2.14

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

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: Invalid url: "akimoto on gmail"
The official readme.txt is a good inspiration

embed-wider-flickr-photo/embed-wider-flickr-photo.php Passed 13 tests

The entry point to "Embed Wider Flickr Photo" version 1.0.3 is a PHP file that has certain tags in its header comment area
48 characters long description:
Enable larger photos when oembed from Flickr URL

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin367 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP885181366
JSON1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity18.33
▷ Minimum class complexity6.00
▷ Maximum class complexity39.00
Average method complexity2.93
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods27
▷ Static methods622.22%
▷ Public methods2696.30%
▷ Protected methods00.00%
▷ Private methods13.70%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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