84% y2k-bug-simulator

Code Review | Y2K Bug Simulator

WordPress plugin Y2K Bug Simulator scored84%from 54 tests.

About plugin

  • Plugin page: y2k-bug-simulator
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8.1-4.9.8
  • WordPress version: 6.3.1
  • First release: Apr 22, 2014
  • Latest release: Aug 4, 2018
  • Number of updates: 12
  • Update frequency: every 130.4 days
  • Top authors: James Luberda (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /646 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼8.69ms] Passed 4 tests

An overview of server-side resources used by Y2K Bug Simulator
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0234.71 ▼4.08
Dashboard /wp-admin3.33 ▼0.0244.91 ▼16.79
Posts /wp-admin/edit.php3.38 ▲0.0246.53 ▼0.98
Add New Post /wp-admin/post-new.php5.91 ▲0.0290.05 ▼8.18
Media Library /wp-admin/upload.php3.25 ▲0.0234.31 ▼5.69
Y2K /wp-admin/options-general.php?page=jbl_y2k3.2130.43

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
jbl_y2k_adminonly

Browser metrics Passed 4 tests

An overview of browser requirements for Y2K Bug Simulator
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.53 ▲0.241.55 ▼0.0838.68 ▼1.27
Dashboard /wp-admin2,199 ▲195.61 ▼0.0793.56 ▲4.4742.65 ▼0.87
Posts /wp-admin/edit.php2,104 ▲72.03 ▲0.0140.26 ▲2.4936.15 ▲1.05
Add New Post /wp-admin/post-new.php1,531 ▲523.29 ▲0.20685.02 ▲4.5852.07 ▼11.28
Media Library /wp-admin/upload.php1,401 ▲44.18 ▲0.0197.83 ▼11.1443.49 ▼3.34
Y2K /wp-admin/options-general.php?page=jbl_y2k7952.0223.9826.79

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/y2k-bug-simulator/jbl-y2k.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% 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
4 plugin tags: y2k, millenium, bugs, entertainment

y2k-bug-simulator/jbl-y2k.php 92% from 13 tests

This is the main PHP file of "Y2K Bug Simulator" version 1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("y2k-bug-simulator.php" instead of "jbl-y2k.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
No dangerous file extensions were detected88 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2233688

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
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%
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
There were not PNG files found in your plugin