78% worst

Code Review | WORST

WordPress plugin WORST scored78%from 54 tests.

About plugin

  • Plugin page: worst
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.6
  • WordPress version: 6.3.1
  • First release: Sep 24, 2013
  • Latest release: Sep 26, 2013
  • Number of updates: 10
  • Update frequency: every 1.1 days
  • Top authors: kristories (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /576 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼9.75ms] Passed 4 tests

An overview of server-side resources used by WORST
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.44 ▼0.0226.08 ▼17.94
Dashboard /wp-admin3.38 ▲0.0847.17 ▼6.89
Posts /wp-admin/edit.php3.43 ▲0.0844.65 ▼7.26
Add New Post /wp-admin/post-new.php5.96 ▲0.0884.51 ▼6.89
Media Library /wp-admin/upload.php3.30 ▲0.0736.40 ▼3.71
New Area /wp-admin/post-new.php?post_type=worst_area3.3444.21
All Areas /wp-admin/edit.php?post_type=worst_area3.3539.56
WORST /wp-admin/options-general.php?page=uzaklab_worst3.2430.71

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for WORST
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,869 ▲12314.29 ▲0.0329.73 ▲28.0142.48 ▼1.84
Dashboard /wp-admin2,232 ▲445.79 ▲0.8098.12 ▼10.5638.45 ▼4.27
Posts /wp-admin/edit.php2,118 ▲292.14 ▲0.1433.89 ▼7.8536.48 ▼1.28
Add New Post /wp-admin/post-new.php1,566 ▲5223.02 ▲5.50670.32 ▼19.9551.97 ▲1.38
Media Library /wp-admin/upload.php1,420 ▲324.19 ▲0.0697.40 ▼18.3143.90 ▼4.05
New Area /wp-admin/post-new.php?post_type=worst_area1,5422.5151.3559.42
All Areas /wp-admin/edit.php?post_type=worst_area1,0912.0031.7330.49
WORST /wp-admin/options-general.php?page=uzaklab_worst8282.0625.4630.34

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=uzaklab_worst
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=uzaklab_worst
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=uzaklab_worst
    • > Notice in wp-content/plugins/worst/uzaklab_worst.php+325
    Trying to access array offset on value of type bool

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
Almost there! Just fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/worst/uzaklab_worst.php:29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/worst/page.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 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
6 plugin tags: shipping, cost, google, direction, maps...

worst/uzaklab_worst.php 92% from 13 tests

The primary PHP file in "WORST" version 0.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("worst.php" instead of "uzaklab_worst.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected443 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP25718330
JavaScript112040
CSS19038
Markdown143035

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.20
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected