94% multiple-votes-in-one-page

Code Review | Multiple Votes in one page

WordPress plugin Multiple Votes in one page scored 94% from 54 tests.

About plugin

  • Plugin page: multiple-votes-in...
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.6
  • WordPress version: 5.8.1
  • First release: Jul 30, 2016
  • Latest release: Oct 4, 2016
  • Number of updates: 11
  • Update frequency: every 6.0 days
  • Top authors: lequanghuylc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 1,574 total downloads

Benchmarks

Plugin footprint Passed 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.07MB] [CPU: ▼142.58ms] Passed 4 tests

Server-side resources used by Multiple Votes in one page
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.92 ▲0.0835.26 ▼1.74
Dashboard /wp-admin3.14 ▲0.0850.52 ▼1.15
Posts /wp-admin/edit.php3.22 ▲0.1148.74 ▲4.60
Add New Post /wp-admin/post-new.php5.49 ▲0.0695.89 ▼566.98
Media Library /wp-admin/upload.php3.08 ▲0.0837.31 ▼0.45
Add Vote /wp-admin/post-new.php?post_type=multiplevotesioplqh3.1250.56
Votes /wp-admin/edit.php?post_type=multiplevotesioplqh3.1244.08
Vote Categories /wp-admin/edit-tags.php?taxonomy=votes-iop-lqh-categories&post_type=multiplevotesioplqh3.0837.19

Server storage [IO: ▲0.03MB] [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: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Multiple Votes in one page
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,857 ▲28516.15 ▲0.6211.27 ▲1.6652.45 ▲1.37
Dashboard /wp-admin3,013 ▲765.89 ▼0.09149.70 ▼23.34108.47 ▼13.82
Posts /wp-admin/edit.php2,779 ▲402.70 ▲0.0269.53 ▼0.0594.80 ▼2.16
Add New Post /wp-admin/post-new.php1,641 ▼2,09521.28 ▲2.42308.58 ▼178.08108.23 ▼9.40
Media Library /wp-admin/upload.php1,847 ▲375.06 ▲0.05158.76 ▲4.26129.78 ▲5.97
Add Vote /wp-admin/post-new.php?post_type=multiplevotesioplqh2,1963.45104.39107.05
Votes /wp-admin/edit.php?post_type=multiplevotesioplqh1,5062.6482.5881.96
Vote Categories /wp-admin/edit-tags.php?taxonomy=votes-iop-lqh-categories&post_type=multiplevotesioplqh1,7792.5069.3585.50

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

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 everything seems fine, this is not 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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/multiple-votes-in-one-page/multiple-votes-in-one-page.php:59

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: multiple votes, one page, vote

multiple-votes-in-one-page/multiple-votes-in-one-page.php Passed 13 tests

"Multiple Votes in one page" version 1.0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
58 characters long description:
This plugin allow you to create multiple votes in one page

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
Success! There were no dangerous files found in this plugin303 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP15530239
CSS10043
Markdown110020
JavaScript1061

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin