89% top-3-jackpots

Code Review | Top 3 Lottery Jackpots

WordPress plugin Top 3 Lottery Jackpots scored 89% from 54 tests.

About plugin

  • Plugin page: top-3-jackpots
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.3
  • WordPress version: 6.3.1
  • First release: Dec 25, 2017
  • Latest release: Oct 27, 2019
  • Number of updates: 12
  • Update frequency: every 56.4 days
  • Top authors: maxtongh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,241 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.11MB] [CPU: ▼12.08ms] Passed 4 tests

This is a short check of server-side resources used by Top 3 Lottery Jackpots
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0437.58 ▼3.45
Dashboard /wp-admin3.30 ▼0.0043.24 ▼7.54
Posts /wp-admin/edit.php3.37 ▲0.0147.37 ▲2.52
Add New Post /wp-admin/post-new.php5.45 ▼0.4473.42 ▼31.62
Media Library /wp-admin/upload.php3.21 ▼0.0132.39 ▼5.70

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
top3jps_lottodata
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Top 3 Lottery Jackpots
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,281 ▲54613.95 ▼0.438.86 ▲7.0441.37 ▼5.50
Dashboard /wp-admin2,346 ▲1614.97 ▼0.9697.09 ▼23.3540.15 ▼4.40
Posts /wp-admin/edit.php2,241 ▲1552.29 ▲0.3241.35 ▲7.4734.71 ▲0.67
Add New Post /wp-admin/post-new.php1,640 ▲12123.57 ▲0.29674.49 ▲9.4738.79 ▼11.23
Media Library /wp-admin/upload.php1,529 ▲1414.48 ▲0.27104.53 ▼11.7745.66 ▼1.89

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

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 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: You are using too many tags: 14 tag instead of maximum 10
  • Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4 in top-3-jackpots/assets to your readme.txt
The official readme.txt might help

top-3-jackpots/index.php 92% from 13 tests

Analyzing the main PHP file in "Top 3 Lottery Jackpots" version 1.0.7
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("top-3-jackpots.php" instead of "index.php")

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
Good job! No executable or dangerous file extensions detected1,456 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
CSS3852586
PHP9191139499
JavaScript45767371

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.38
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%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
logos/25.png8.37KB3.30KB▼ 60.55%
logos/8.png6.20KB3.09KB▼ 50.20%
logos/18.png5.28KB2.72KB▼ 48.57%
logos/3.png4.74KB2.44KB▼ 48.48%
logos/2.png2.75KB2.24KB▼ 18.57%