84% zurb-foundation-5-clearing-gallery

Code Review | Zurb Foundation 5 Clearing Gallery

WordPress plugin Zurb Foundation 5 Clearing Gallery scored84%from 54 tests.

About plugin

  • Plugin page: zurb-foundation-5...
  • Plugin version: 1.01
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.5
  • WordPress version: 6.3.1
  • First release: Jan 17, 2014
  • Latest release: Apr 14, 2016
  • Number of updates: 28
  • Update frequency: every 29.2 days
  • Top authors: ben.moody (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /2,939 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Zurb Foundation 5 Clearing Gallery
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.22 ▼16.24
Dashboard /wp-admin3.31 ▲0.0144.74 ▲0.15
Posts /wp-admin/edit.php3.36 ▲0.0147.07 ▲0.60
Add New Post /wp-admin/post-new.php5.89 ▲0.0190.81 ▲0.22
Media Library /wp-admin/upload.php3.23 ▲0.0138.41 ▲0.55

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Zurb Foundation 5 Clearing Gallery
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.61 ▼0.701.62 ▼1.0739.76 ▼18.74
Dashboard /wp-admin2,206 ▲184.84 ▼1.00104.07 ▲3.2939.73 ▼1.74
Posts /wp-admin/edit.php2,092 ▲32.01 ▼0.0339.64 ▲0.9734.55 ▼1.46
Add New Post /wp-admin/post-new.php1,530 ▲1023.17 ▲0.01631.71 ▼27.6452.84 ▲5.25
Media Library /wp-admin/upload.php1,388 ▼04.15 ▼0.0293.61 ▼6.3241.95 ▼0.73

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 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
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/zurb-foundation-5-clearing-gallery/prso-foundation-5-clearing-gallery.php:22

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

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: zurb foundation gallery, foundation 5, zurb foundation 5, zurb foundation clearing, foundation clearing...

zurb-foundation-5-clearing-gallery/prso-foundation-5-clearing-gallery.php 85% from 13 tests

This is the main PHP file of "Zurb Foundation 5 Clearing Gallery" version 1.01, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("zurb-foundation-5-clearing-gallery.php" instead of "prso-foundation-5-clearing-gallery.php")
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin1,541 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP32633191,481
HTML18060

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.30
Average class complexity31.00
▷ Minimum class complexity20.00
▷ Maximum class complexity42.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods24
▷ Static methods28.33%
▷ Public methods1979.17%
▷ Protected methods520.83%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
6 PNG files occupy 0.13MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/ReduxConfig/presets/preset2.png29.74KB10.91KB▼ 63.31%
inc/ReduxConfig/patterns/triangular_@2X.png0.21KB0.25KB0.00%
inc/ReduxConfig/patterns/triangular.png0.21KB0.22KB0.00%
inc/ReduxConfig/patterns/tree_bark.png41.37KB43.65KB0.00%
inc/ReduxConfig/presets/preset1.png18.04KB7.56KB▼ 58.12%