83% gleam

Code Review | Gleam: Run Competitions on Your Wordpress Blog

WordPress plugin Gleam: Run Competitions on Your Wordpress Blog scored83%from 54 tests.

About plugin

  • Plugin page: gleam
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.9
  • WordPress version: 6.3.1
  • First release: Apr 24, 2014
  • Latest release: May 23, 2018
  • Number of updates: 12
  • Update frequency: every 126.7 days
  • Top authors: stuartmck (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

400+ active /8,748 total downloads

Benchmarks

Plugin footprint 82% 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.01MB] [CPU: ▼7.88ms] Passed 4 tests

This is a short check of server-side resources used by Gleam: Run Competitions on Your Wordpress Blog
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.17 ▼6.05
Dashboard /wp-admin3.31 ▼0.0351.38 ▼10.98
Posts /wp-admin/edit.php3.36 ▲0.0050.61 ▲0.34
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.75 ▼14.81
Media Library /wp-admin/upload.php3.23 ▲0.0036.45 ▲1.12

Server storage [IO: ▲0.63MB] [DB: ▲0.00MB] 67% from 3 tests

Input-output and database impact of this plugin
Please fix the following
  • Illegal file modification detected: 1 file (4.00KB) outside of "wp-content/plugins/gleam/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Gleam: Run Competitions on Your Wordpress Blog
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲7914.62 ▲0.372.11 ▲0.1541.45 ▼2.91
Dashboard /wp-admin2,221 ▲215.85 ▲0.04106.36 ▲3.0242.53 ▼3.23
Posts /wp-admin/edit.php2,100 ▼02.06 ▲0.0440.63 ▲5.2436.04 ▼1.38
Add New Post /wp-admin/post-new.php1,531 ▼1421.09 ▼2.12678.80 ▲6.6360.61 ▼6.56
Media Library /wp-admin/upload.php1,400 ▼34.18 ▼0.0596.64 ▼7.5245.14 ▼3.43

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/gleam/gleam.php:11

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 81% 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:
  • Screenshots: Please add images for these screenshots: #1 (Gleam Hosted Landing Page), #2 (Embedded On Your Site), #3 (Admin Area With Entry Options)
  • Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Contributors: The plugin contributors field is missing
Please take inspiration from this readme.txt

gleam/gleam.php Passed 13 tests

The main file in "Gleam: Run Competitions on Your Wordpress Blog" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
42 characters long description:
Gleam competition plugin. Requires PHP 5.3

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin11 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12811

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.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
3 compressed PNG files occupy 0.61MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png93.35KB90.45KB▼ 3.11%
screenshot-1.png330.57KB295.08KB▼ 10.74%
screenshot-2.png198.41KB198.37KB0.02%