10% fivevote

Code Review | 5 Vote Free Photos

WordPress plugin 5 Vote Free Photos scored 10% from 54 tests.

About plugin

  • Plugin page: fivevote
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.8
  • WordPress version: 6.3.1
  • First release: Oct 3, 2013
  • Latest release: Dec 20, 2013
  • Number of updates: 6
  • Update frequency: every 13.7 days
  • Top authors: benhallbenhall (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 1,085 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Parse error in wp-content/plugins/fivevote/index.php+173
    syntax error, unexpected end of file

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

Server-side resources used by 5 Vote Free Photos
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.27 ▼3.19
Dashboard /wp-admin3.31 ▲0.0071.85 ▲18.41
Posts /wp-admin/edit.php3.36 ▲0.0049.67 ▼2.04
Add New Post /wp-admin/post-new.php5.89 ▲0.0098.61 ▼8.51
Media Library /wp-admin/upload.php3.23 ▲0.0033.02 ▼1.97

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

5 Vote Free Photos: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2914.75 ▲0.321.81 ▼0.2340.91 ▲0.87
Dashboard /wp-admin2,206 ▲185.89 ▲1.02111.05 ▲1.5344.46 ▼2.14
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0241.75 ▼0.5237.16 ▲2.15
Add New Post /wp-admin/post-new.php1,534 ▲123.32 ▼0.10692.34 ▲65.1959.80 ▲0.47
Media Library /wp-admin/upload.php1,391 ▲64.27 ▲0.1099.51 ▼4.8642.98 ▼1.14

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/fivevote/index.php on line 173

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were 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
5 plugin tags: photo voting, photo collections, image galleries, free photos, free content

fivevote/index.php 85% from 13 tests

"5 Vote Free Photos" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("fivevote.php" instead of "index.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 165 characters long)

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 detected254 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP11943111
HTML1212110
JavaScript1123033

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.10
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
image.png1.13KB0.25KB▼ 77.90%