84% fullscreen-gallery

Code Review | Fullscreen Gallery

WordPress plugin Fullscreen Gallery scored84%from 54 tests.

About plugin

  • Plugin page: fullscreen-gallery
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.0
  • WordPress version: 6.3.1
  • First release: Sep 4, 2014
  • Latest release: Sep 14, 2014
  • Number of updates: 7
  • Update frequency: every 53.6 days
  • Top authors: markoheijnen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,543 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
Install script ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼1.71ms] Passed 4 tests

This is a short check of server-side resources used by Fullscreen Gallery
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0447.70 ▲0.62
Dashboard /wp-admin3.37 ▲0.0650.24 ▼2.34
Posts /wp-admin/edit.php3.48 ▲0.1254.93 ▲0.60
Add New Post /wp-admin/post-new.php5.95 ▲0.0696.25 ▼5.73
Media Library /wp-admin/upload.php3.29 ▲0.0640.78 ▲0.82
Fullscreen Gallery /wp-admin/options-general.php?page=fullscreen-gallery3.2540.24

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Fullscreen Gallery
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.72 ▲0.371.60 ▲0.0040.07 ▼3.25
Dashboard /wp-admin2,202 ▲255.59 ▼0.0990.74 ▼1.9941.31 ▲0.33
Posts /wp-admin/edit.php2,107 ▲72.02 ▲0.0742.49 ▲7.4035.59 ▼0.58
Add New Post /wp-admin/post-new.php1,529 ▼922.90 ▼0.43646.89 ▼73.1448.77 ▼10.90
Media Library /wp-admin/upload.php1,407 ▲74.19 ▲0.03104.94 ▼11.7047.97 ▲0.74
Fullscreen Gallery /wp-admin/options-general.php?page=fullscreen-gallery9211.9925.1637.83

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

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
Even though everything seems fine, this is not 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 errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'Fullscreen_Gallery' not found in wp-content/plugins/fullscreen-gallery/inc/template.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: gallery, fullscreen, post

fullscreen-gallery/fullscreen-gallery.php Passed 13 tests

The main PHP file in "Fullscreen Gallery" ver. 0.2 adds more information about the plugin and also serves as the entry point for this plugin
77 characters long description:
A simple plugin that adds a fullscreen endpoint to display the gallery images

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
Good job! No executable or dangerous file extensions detected2,778 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript66121,1212,236
PHP614336380
CSS250162

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity9.80
▷ Minimum class complexity5.00
▷ Maximum class complexity18.00
Average method complexity2.47
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes120.00%
▷ Concrete classes480.00%
▷ Final classes00.00%
Methods31
▷ Static methods825.81%
▷ Public methods2374.19%
▷ Protected methods39.68%
▷ Private methods516.13%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin