73% w8ing

Code Review | W8ing

WordPress plugin W8ing scored73%from 54 tests.

About plugin

  • Plugin page: w8ing
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-3.8
  • WordPress version: 6.3.1
  • First release: Mar 4, 2014
  • Latest release: Mar 4, 2014
  • Number of updates: 6
  • Update frequency: every 0.7 days
  • Top authors: bgcom (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

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

A check of server-side resources used by W8ing
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.65 ▼3.91
Dashboard /wp-admin3.32 ▲0.0245.64 ▼5.95
Posts /wp-admin/edit.php3.37 ▲0.0247.08 ▼4.89
Add New Post /wp-admin/post-new.php5.92 ▲0.0391.11 ▲2.33
Media Library /wp-admin/upload.php3.24 ▲0.0134.16 ▼0.41
W8ing /wp-admin/options-general.php?page=w8ing3.1930.15

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by W8ing
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7113.25 ▼1.351.82 ▼0.3741.36 ▼3.32
Dashboard /wp-admin2,209 ▲185.84 ▲0.9594.40 ▼21.6039.77 ▼5.47
Posts /wp-admin/edit.php2,098 ▲121.99 ▲0.0041.59 ▲5.2033.88 ▼2.57
Add New Post /wp-admin/post-new.php1,533 ▲523.30 ▲0.00658.55 ▼19.0551.07 ▲4.85
Media Library /wp-admin/upload.php1,394 ▲34.24 ▲0.0798.24 ▼2.1145.08 ▼1.37
W8ing /wp-admin/options-general.php?page=w8ing8592.0723.4628.54

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=w8ing
    • > Notice in wp-content/plugins/w8ing/w8ing_admin.php+63
    Undefined variable: args

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 fix the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/w8ing/w8ing_admin.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/w8ing/w8ing_admin.php:4

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
    • > GET request to /wp-admin/options-general.php?page=w8ing
    • > Javascript (severe) in unknown
    /wp-content/plugins/w8ing/w8ing_style.css?ver=6.3.1 0:0 Uncaught SyntaxError: Unexpected token '.'

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Plugin Name: You should set the name of your plugin on the first line ( === w8ing === )
The official readme.txt might help

w8ing/w8ing.php Passed 13 tests

The principal PHP file in "W8ing" v. 1.0 is loaded by WordPress automatically on each request
49 characters long description:
A basic waiting/landing page plugin for Wordpress

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin187 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP26631183
CSS1004

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.67
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%
Functions14
▷ Named functions14100.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
PNG images were not found in this plugin