90% photographers-galleries

Code Review | Photographers galleries

WordPress plugin Photographers galleries scored90%from 54 tests.

About plugin

  • Plugin page: photographers-gal...
  • Plugin version: 1.1.8
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.8.2
  • WordPress version: 6.3.1
  • First release: Apr 25, 2016
  • Latest release: Jan 5, 2022
  • Number of updates: 66
  • Update frequency: every 31.6 days
  • Top authors: aurelienpierre (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /4,389 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.05MB] [CPU: ▼11.44ms] Passed 4 tests

Server-side resources used by Photographers galleries
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0739.51 ▼5.65
Dashboard /wp-admin3.36 ▲0.0249.18 ▼16.37
Posts /wp-admin/edit.php3.41 ▲0.0649.10 ▼3.89
Add New Post /wp-admin/post-new.php5.96 ▲0.0886.65 ▼19.84
Media Library /wp-admin/upload.php3.29 ▲0.0637.71 ▲6.83
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=attachment3.2836.74
Galleries /wp-admin/edit-tags.php?taxonomy=gallery&post_type=attachment3.2834.71
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=attachment3.2838.44
Locations /wp-admin/edit-tags.php?taxonomy=location&post_type=attachment3.2836.20
Models /wp-admin/edit-tags.php?taxonomy=model&post_type=attachment3.2835.54

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
category_children
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Photographers galleries
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲7413.19 ▼1.421.83 ▼0.1442.98 ▼1.68
Dashboard /wp-admin2,226 ▲385.91 ▲1.03103.41 ▼0.8043.36 ▲0.47
Posts /wp-admin/edit.php2,109 ▲382.02 ▼0.0533.87 ▼4.2335.27 ▼3.29
Add New Post /wp-admin/post-new.php1,529 ▼417.63 ▼5.68642.88 ▲8.1248.57 ▼4.81
Media Library /wp-admin/upload.php1,411 ▲234.22 ▲0.02104.46 ▲4.9351.29 ▲7.15
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=attachment1,3242.1331.0630.30
Galleries /wp-admin/edit-tags.php?taxonomy=gallery&post_type=attachment1,2792.1326.7627.36
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=attachment1,4632.1428.5033.64
Locations /wp-admin/edit-tags.php?taxonomy=location&post_type=attachment1,2792.1326.6229.39
Models /wp-admin/edit-tags.php?taxonomy=model&post_type=attachment1,2822.1325.7128.52

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • category_children
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
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
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: responsive, photo, carousel, gallery, html5...

photographers-galleries/photographers-galleries.php 92% from 13 tests

The main PHP file in "Photographers galleries" ver. 1.1.8 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 149 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected1,091 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP6111155448
CSS26821370
JavaScript27460272
SVG1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods1
▷ Static methods00.00%
▷ Public methods1100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin