62% waspio

Code Review | Wasp.io

WordPress plugin Wasp.io scored 62% from 54 tests.

About plugin

  • Plugin page: waspio
  • Plugin version: 2.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.0
  • WordPress version: 6.3.1
  • First release: Oct 10, 2014
  • Latest release: Oct 11, 2014
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: waspio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 611 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼1.94MB] [CPU: ▼50.42ms] Passed 4 tests

Analyzing server-side resources used by Wasp.io
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.04 ▼1.423.77 ▼33.28
Dashboard /wp-admin2.06 ▼1.246.38 ▼41.70
Posts /wp-admin/edit.php2.06 ▼1.295.32 ▼42.68
Add New Post /wp-admin/post-new.php2.06 ▼3.825.64 ▼84.00
Media Library /wp-admin/upload.php2.06 ▼1.164.12 ▼25.96
Wasp.io /wp-admin/admin.php?page=wasp_plugin2.065.88
Configuration /wp-admin/admin.php?page=wasp-settings2.064.94
About /wp-admin/admin.php?page=wasp-about2.066.07

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 16 new options
New WordPress options
wasp_track_ajax
widget_recent-posts
wasp_track_404
wasp_track_js
wasp_track_users
widget_recent-comments
wasp_ignored_levels
theysaidso_admin_options
wasp_filters
can_compress_scripts
...

Browser metrics Passed 4 tests

A check of browser resources used by Wasp.io
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,940 ▲19413.97 ▼0.355.13 ▲3.3242.08 ▲1.43
Dashboard /wp-admin2,245 ▲605.79 ▲0.87112.31 ▼7.0681.29 ▲37.26
Posts /wp-admin/edit.php2,124 ▲352.00 ▼0.0534.81 ▼6.6036.72 ▲1.13
Add New Post /wp-admin/post-new.php1,699 ▲16622.56 ▼0.37725.61 ▲81.8362.23 ▲7.10
Media Library /wp-admin/upload.php1,424 ▲394.22 ▲0.0499.67 ▼10.3684.07 ▲37.63
Wasp.io /wp-admin/admin.php?page=wasp_plugin8472.0626.0227.88
Configuration /wp-admin/admin.php?page=wasp-settings8262.0628.3729.91
About /wp-admin/admin.php?page=wasp-about8602.1526.4534.54

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wasp-about
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/waspio/about.php
    • > /wp-content/plugins/waspio/wasp.php
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      Use of undefined constant WASP_LOGO - assumed 'WASP_LOGO' (this will throw an Error in a future version of PHP) in wp-content/plugins/waspio/settings.php on line 13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/waspio/settings.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Screenshot #1 () image missing
  • Donate link: Please fix this invalid url: ""
Please take inspiration from this readme.txt

waspio/wasp.php 85% from 13 tests

"Wasp.io" version 2.2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("waspio.php" instead of "wasp.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 183 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin1,131 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP42004251,131

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.56
Average class complexity138.00
▷ Minimum class complexity138.00
▷ Maximum class complexity138.00
Average method complexity6.24
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods26
▷ Static methods13.85%
▷ Public methods1038.46%
▷ Protected methods13.85%
▷ Private methods1557.69%
Functions15
▷ Named functions1493.33%
▷ Anonymous functions16.67%
Constants11
▷ Global constants11100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/wasp.png1.62KB0.76KB▼ 53.40%