84% embed-google-photos-album-easily

Code Review | Embed Google Photos album

WordPress plugin Embed Google Photos album scored84%from 54 tests.

About plugin

  • Plugin page: embed-google-phot...
  • Plugin version: 2.1.9
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Mar 10, 2018
  • Latest release: Jul 20, 2023
  • Number of updates: 35
  • Update frequency: every 55.9 days
  • Top authors: pavex (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

4,000+ active /32,964 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼5.11ms] Passed 4 tests

A check of server-side resources used by Embed Google Photos album
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0440.34 ▼3.34
Dashboard /wp-admin3.35 ▲0.0447.25 ▼2.49
Posts /wp-admin/edit.php3.40 ▲0.0452.18 ▼5.75
Add New Post /wp-admin/post-new.php5.93 ▲0.0491.87 ▼8.87
Media Library /wp-admin/upload.php3.27 ▲0.0437.04 ▲3.85

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Embed Google Photos album
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.19 ▼1.461.70 ▼0.3343.67 ▼1.16
Dashboard /wp-admin2,209 ▲244.84 ▼1.03103.12 ▼0.4439.84 ▼2.58
Posts /wp-admin/edit.php2,089 ▼32.01 ▼0.0239.81 ▼6.3934.99 ▲0.11
Add New Post /wp-admin/post-new.php1,514 ▼017.50 ▼6.11642.35 ▼65.6562.02 ▲0.85
Media Library /wp-admin/upload.php1,385 ▼64.29 ▲0.09107.72 ▼1.7947.42 ▲3.30

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/embed-google-photos-album-easily/pavex-embed-google-photos-album.php:268

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: wordpress carousel, google photos, carousel slideshow, embed gallery, embed google photos

embed-google-photos-album-easily/pavex-embed-google-photos-album.php 85% from 13 tests

"Embed Google Photos album" version 2.1.9's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("embed-google-photos-album-easily.php" instead of "pavex-embed-google-photos-album.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
Good job! No executable or dangerous file extensions detected201 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16218201

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.56
Average class complexity52.00
▷ Minimum class complexity52.00
▷ Maximum class complexity52.00
Average method complexity6.10
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods440.00%
▷ Protected methods00.00%
▷ Private methods660.00%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
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
There were not PNG files found in your plugin