84% wap-gallery

Code Review | Framed Gallery

WordPress plugin Framed Gallery scored84%from 54 tests.

About plugin

  • Plugin page: wap-gallery
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.7.4
  • WordPress version: 6.3.1
  • First release: May 9, 2017
  • Latest release: May 9, 2017
  • Number of updates: 8
  • Update frequency: every 0.5 days
  • Top authors: wearepanda (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /680 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Framed Gallery
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.56 ▼8.07
Dashboard /wp-admin3.32 ▲0.0248.35 ▼3.11
Posts /wp-admin/edit.php3.37 ▲0.0151.41 ▼2.18
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.72 ▼5.20
Media Library /wp-admin/upload.php3.24 ▲0.0136.49 ▼4.60

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

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

Browser metrics Passed 4 tests

Framed Gallery: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲6513.30 ▼1.002.30 ▲0.4340.81 ▼5.66
Dashboard /wp-admin2,203 ▲295.78 ▼0.0597.91 ▼22.2243.17 ▼8.13
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0135.79 ▼2.8232.77 ▼3.43
Add New Post /wp-admin/post-new.php1,528 ▲723.20 ▲0.05671.34 ▼39.4461.11 ▲6.50
Media Library /wp-admin/upload.php1,382 ▼04.38 ▲0.19101.39 ▼3.9843.73 ▼1.07

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wap-gallery/wap-framed-gallery.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: gallery, image, media

wap-gallery/wap-framed-gallery.php 85% from 13 tests

Analyzing the main PHP file in "Framed Gallery" version 1.0.0
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("wap-gallery.php" instead of "wap-framed-gallery.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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
Success! There were no dangerous files found in this plugin274 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS182198
PHP2484761
JavaScript110015

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin