84% epitome-gallery

Code Review | Epitome Gallery

WordPress plugin Epitome Gallery scored84%from 54 tests.

About plugin

  • Plugin page: epitome-gallery
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.3
  • WordPress version: 6.3.1
  • First release: Dec 7, 2015
  • Latest release: Dec 4, 2015
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: freddessaint2 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /837 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

A check of server-side resources used by Epitome Gallery
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.58 ▲5.52
Dashboard /wp-admin3.31 ▲0.0144.10 ▼0.01
Posts /wp-admin/edit.php3.36 ▲0.0044.72 ▼2.04
Add New Post /wp-admin/post-new.php5.89 ▲0.0076.78 ▼11.89
Media Library /wp-admin/upload.php3.23 ▲0.0034.55 ▲1.23

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Epitome Gallery
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,885 ▲13913.63 ▼1.126.03 ▲4.4141.68 ▼2.77
Dashboard /wp-admin2,200 ▲155.81 ▼0.07103.12 ▼1.0641.05 ▲0.23
Posts /wp-admin/edit.php2,086 ▼62.05 ▲0.0534.98 ▼5.1134.18 ▼2.13
Add New Post /wp-admin/post-new.php1,543 ▲1023.43 ▲0.26661.78 ▲30.6674.21 ▲19.49
Media Library /wp-admin/upload.php1,397 ▲94.30 ▲0.03104.00 ▼2.7445.30 ▼1.79

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/epitome-gallery/epitome-gallery.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: slider, gallery, columns, layout, subtitle

epitome-gallery/epitome-gallery.php 92% from 13 tests

The principal PHP file in "Epitome Gallery" v. 1.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 276 characters long)

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
Success! There were no dangerous files found in this plugin1,146 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP364319312
JavaScript25223267
CSS105256
LESS195251
Markdown221060

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity19.00
▷ Minimum class complexity5.00
▷ Maximum class complexity33.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods24
▷ Static methods312.50%
▷ Public methods24100.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/paddle-prev.png0.63KB1.02KB0.00%
assets/images/paddle-next.png0.63KB0.96KB0.00%