78% gvsoft-photobox

Code Review | GVSoft Photobox

WordPress plugin GVSoft Photobox scored78%from 54 tests.

About plugin

  • Plugin page: gvsoft-photobox
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.0
  • WordPress version: 6.3.1
  • First release: Nov 27, 2018
  • Latest release: Jan 21, 2019
  • Number of updates: 33
  • Update frequency: every 1.7 days
  • Top authors: vlad172 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /747 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
The plugin installed gracefully, with no errors

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

Server-side resources used by GVSoft Photobox
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0538.74 ▲2.76
Dashboard /wp-admin3.37 ▲0.0650.43 ▲5.92
Posts /wp-admin/edit.php3.42 ▲0.0645.81 ▼3.77
Add New Post /wp-admin/post-new.php5.95 ▲0.0680.40 ▼10.13
Media Library /wp-admin/upload.php3.29 ▲0.0636.32 ▲2.75
GVSoft Photobox /wp-admin/options-general.php?page=GVSoft_Photobox3.2632.68

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for GVSoft Photobox
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,935 ▲18913.74 ▼0.665.74 ▲4.1439.01 ▼5.21
Dashboard /wp-admin2,233 ▲455.10 ▲0.21114.44 ▼1.1337.49 ▼0.63
Posts /wp-admin/edit.php2,115 ▲262.32 ▲0.2735.70 ▼28.8630.77 ▼3.58
Add New Post /wp-admin/post-new.php1,541 ▲818.53 ▼4.60649.03 ▼17.0034.40 ▼19.63
Media Library /wp-admin/upload.php1,412 ▲244.52 ▲0.31100.57 ▲0.5340.38 ▼4.70
GVSoft Photobox /wp-admin/options-general.php?page=GVSoft_Photobox1,2942.4253.6732.06

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/gvsoft-photobox/gvsoft-photobox.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gvsoft-photobox/admin.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed: The official readme.txt is a good inspiration

gvsoft-photobox/gvsoft-photobox.php Passed 13 tests

"GVSoft Photobox" version 1.2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
131 characters long description:
Фоторамка для просмотра фотографий и картинок. Photo frame for viewing photos and pictures.

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 detected3,151 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
SVG1002,671
PHP44243291
JavaScript11318116
PO File1344173

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.15
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%
Functions10
▷ Named functions220.00%
▷ Anonymous functions880.00%
Constants4
▷ Global constants4100.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 files were detected