10% waitpage

Code Review | Waitpage.io

WordPress plugin Waitpage.io scored10%from 54 tests.

About plugin

  • Plugin page: waitpage
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.0-5.5.3
  • WordPress version: 6.3.1
  • First release: Feb 7, 2021
  • Latest release: Feb 7, 2021
  • Number of updates: 2
  • Update frequency: every 15.0 days
  • Top authors: waitpageio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /308 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > Warning in wp-content/plugins/waitpage/waitpage.php+9
    require_once(vendor/autoload.php): failed to open stream: No such file or directory

Server metrics [RAM: ▲0.00MB] [CPU: ▼8.22ms] Passed 4 tests

An overview of server-side resources used by Waitpage.io
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0044.21 ▲3.41
Dashboard /wp-admin3.31 ▲0.0048.87 ▼5.66
Posts /wp-admin/edit.php3.36 ▲0.0044.62 ▼10.79
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.39 ▼19.08
Media Library /wp-admin/upload.php3.23 ▲0.0038.02 ▲2.67

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Waitpage.io
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▼0.132.03 ▲0.0451.52 ▲3.77
Dashboard /wp-admin2,192 ▲155.57 ▼0.1184.28 ▼12.4137.31 ▼4.41
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0037.39 ▼3.8534.84 ▼3.88
Add New Post /wp-admin/post-new.php1,525 ▼323.43 ▲0.33703.31 ▲67.9969.48 ▲14.14
Media Library /wp-admin/upload.php1,403 ▲34.21 ▼0.0099.50 ▼4.0742.03 ▼2.93

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
Please take a closer look at the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Warning
      require_once(vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/waitpage/waitpage.php on line 9
    • > PHP Fatal error
      require_once(): Failed opening required 'vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/waitpage/waitpage.php on line 9

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: woocommerce, queue, traffic, wait

waitpage/waitpage.php Passed 13 tests

The entry point to "Waitpage.io" version 1.0 is a PHP file that has certain tags in its header comment area
24 characters long description:
The only plugin you need

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected277 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP16226254
Markdown15016
JSON1007

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.42
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%
Functions20
▷ Named functions1995.00%
▷ Anonymous functions15.00%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin