84% buzz-for-video-game-award-programs

Code Review | Buzz for Video Game Award Programs

WordPress plugin Buzz for Video Game Award Programs scored84%from 54 tests.

About plugin

  • Plugin page: buzz-for-video-ga...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4.2
  • WordPress version: 6.3.1
  • First release: Aug 21, 2013
  • Latest release: Aug 24, 2013
  • Number of updates: 6
  • Update frequency: every 0.5 days
  • Top authors: navgtr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /880 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
Install script ran successfully

Server metrics [RAM: ▲0.23MB] [CPU: ▼6.64ms] Passed 4 tests

A check of server-side resources used by Buzz for Video Game Award Programs
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.86 ▲0.3545.00 ▲2.10
Dashboard /wp-admin3.69 ▲0.3055.05 ▼11.60
Posts /wp-admin/edit.php3.80 ▲0.4155.23 ▲6.56
Add New Post /wp-admin/post-new.php5.83 ▼0.1076.07 ▼19.59
Media Library /wp-admin/upload.php3.61 ▲0.3441.32 ▲2.55

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Buzz for Video Game Award Programs
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.14 ▼0.531.93 ▲0.1639.63 ▼4.81
Dashboard /wp-admin2,198 ▲245.58 ▲0.0595.73 ▲2.2343.00 ▼1.72
Posts /wp-admin/edit.php2,100 ▼01.98 ▼0.0140.31 ▲3.8334.97 ▼0.47
Add New Post /wp-admin/post-new.php8,097 ▲6,57126.06 ▲2.23927.96 ▲217.1086.65 ▲16.27
Media Library /wp-admin/upload.php1,397 ▲64.20 ▲0.03100.02 ▲6.3743.78 ▼1.08

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 14× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'custom_add_meta_box' not found in wp-content/plugins/buzz-for-video-game-award-programs/igf-awards.php:54
    • > PHP Fatal error
      Uncaught Error: Class 'custom_add_meta_box' not found in wp-content/plugins/buzz-for-video-game-award-programs/gang-awards.php:94
    • > PHP Fatal error
      Uncaught Error: Class 'custom_add_meta_box' not found in wp-content/plugins/buzz-for-video-game-award-programs/vga-awards.php:127
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_template_directory_uri() in wp-content/plugins/buzz-for-video-game-award-programs/buzzmetaboxes/meta_box.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'custom_add_meta_box' not found in wp-content/plugins/buzz-for-video-game-award-programs/mtv-game-awards.php:66
    • > PHP Fatal error
      Uncaught Error: Class 'custom_add_meta_box' not found in wp-content/plugins/buzz-for-video-game-award-programs/tec-awards.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'custom_add_meta_box' not found in wp-content/plugins/buzz-for-video-game-award-programs/golden-satellite-awards.php:34
    • > PHP Fatal error
      Uncaught Error: Class 'custom_add_meta_box' not found in wp-content/plugins/buzz-for-video-game-award-programs/aias-awards.php:128
    • > PHP Fatal error
      Uncaught Error: Class 'custom_add_meta_box' not found in wp-content/plugins/buzz-for-video-game-award-programs/golden-joystick-awards.php:91
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_template_directory_uri() in wp-content/plugins/buzz-for-video-game-award-programs/buzzmetaboxes/meta_box.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: meta box, video game, programm, games, awards...

buzz-for-video-game-award-programs/awards-meta-box.php 85% from 13 tests

The main file in "Buzz for Video Game Award Programs" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 172 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("buzz-for-video-game-award-programs.php" instead of "awards-meta-box.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin2,631 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP142251411,865
CSS35763627
JavaScript23029139

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.59
Average class complexity40.00
▷ Minimum class complexity40.00
▷ Maximum class complexity40.00
Average method complexity7.50
▷ Minimum method complexity2.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
buzzmetaboxes/images/chosen-sprite.png0.55KB0.70KB0.00%
buzzmetaboxes/images/sprite.png6.06KB2.18KB▼ 64.10%
buzzmetaboxes/images/image.png2.74KB0.10KB▼ 96.43%