83% easy-photo-album-latest-photos

Code Review | Easy Photo Album Latest Photos

WordPress plugin Easy Photo Album Latest Photos scored83%from 54 tests.

About plugin

  • Plugin page: easy-photo-album-...
  • Plugin version: 1.01
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.9.1
  • WordPress version: 6.3.1
  • First release: May 16, 2014
  • Latest release: May 23, 2014
  • Number of updates: 5
  • Update frequency: every 1.6 days
  • Top authors: ebinnion (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,637 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.59ms] Passed 4 tests

An overview of server-side resources used by Easy Photo Album Latest Photos
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.41 ▼0.0633.22 ▼11.52
Dashboard /wp-admin3.33 ▲0.0350.09 ▼0.37
Posts /wp-admin/edit.php3.38 ▲0.0250.11 ▼1.61
Add New Post /wp-admin/post-new.php5.91 ▲0.0287.51 ▼8.87
Media Library /wp-admin/upload.php3.25 ▲0.0242.21 ▲6.08

Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] 67% from 3 tests

Analyzing filesystem and database footprints of this plugin
These are issues you should consider
  • You have illegally modified 1 file (4.00KB) outside of "wp-content/plugins/easy-photo-album-latest-photos/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Easy Photo Album Latest Photos
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,480 ▼30613.53 ▼0.880.53 ▼1.4921.76 ▼27.60
Dashboard /wp-admin2,221 ▲184.84 ▼0.08108.02 ▼1.2642.33 ▲1.32
Posts /wp-admin/edit.php2,100 ▲32.02 ▼0.0036.79 ▼0.9234.62 ▲2.15
Add New Post /wp-admin/post-new.php1,550 ▲523.28 ▲0.02659.66 ▼54.6274.42 ▲16.26
Media Library /wp-admin/upload.php1,400 ▼04.24 ▲0.08108.30 ▲3.0147.05 ▲0.45

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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 take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-photo-album-latest-photos/latest-easy-photo-album.php:37

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 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === easy-photo-album-latest-photos === )
You can take inspiration from this readme.txt

easy-photo-album-latest-photos/latest-easy-photo-album.php 85% from 13 tests

This is the main PHP file of "Easy Photo Album Latest Photos" version 1.01, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("easy-photo-album-latest-photos.php" instead of "latest-easy-photo-album.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin102 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP13457100
CSS1001
JavaScript1011

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity3.67
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods233.33%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/prev.png1.33KB1.59KB0.00%
img/next.png1.32KB1.58KB0.00%
img/close.png0.27KB0.29KB0.00%