10% wave-for-wp

Code Review | Wave

WordPress plugin Wave scored10%from 54 tests.

About plugin

  • Plugin page: wave-for-wp
  • Plugin version: 1.1.1
  • PHP compatiblity: 7.0.15+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.9.2
  • WordPress version: 6.3.1
  • First release: Apr 8, 2018
  • Latest release: Apr 15, 2019
  • Number of updates: 14
  • Update frequency: every 43.7 days
  • Top authors: sund (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /881 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/wave-for-wp/php/wave.php+55
    Function create_function() is deprecated

Server metrics [RAM: ▼1.95MB] [CPU: ▼51.49ms] Passed 4 tests

Server-side resources used by Wave
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.434.75 ▼40.51
Dashboard /wp-admin2.06 ▼1.247.03 ▼41.25
Posts /wp-admin/edit.php2.06 ▼1.295.70 ▼40.58
Add New Post /wp-admin/post-new.php2.06 ▼3.835.77 ▼83.63
Media Library /wp-admin/upload.php2.06 ▼1.174.74 ▼29.82
Wave Settings /wp-admin/options-general.php?page=wave_settings2.066.12

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Wave
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲6713.21 ▼1.074.72 ▲2.9443.64 ▲5.22
Dashboard /wp-admin2,219 ▲314.87 ▼0.17104.20 ▼4.2939.93 ▲0.26
Posts /wp-admin/edit.php2,087 ▼22.00 ▼0.0536.69 ▼2.1936.94 ▼0.83
Add New Post /wp-admin/post-new.php1,708 ▲17324.86 ▲1.64688.43 ▲60.5068.35 ▲0.82
Media Library /wp-admin/upload.php1,401 ▲104.18 ▼0.01106.71 ▲4.0242.06 ▼0.84
Wave Settings /wp-admin/options-general.php?page=wave_settings1,0372.3432.0263.46

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/wave-for-wp/php/wave.php+55
    Function create_function() is deprecated
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

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=wave_settings
    • > Deprecated in wp-content/plugins/wave-for-wp/php/wave.php+55
    Function create_function() is deprecated

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wave-for-wp/php/options.php:236
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wave-for-wp/php/options.php:236
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wave-for-wp/php/wave.php:22

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
    • > GET request to /wp-admin/options-general.php?page=wave_settings
    • > Network (severe)
    https://app.codox.io/verify/subscription - Failed to load resource: the server responded with a status of 403 ()

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: tinymce, co-editing, collaboration, collaborative editing, real-time...

wave-for-wp/wave-wp.php 85% from 13 tests

The main PHP file in "Wave" ver. 1.1.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wave-for-wp.php" instead of "wave-wp.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected683 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP3152174398
JavaScript49052269
HTML15016

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity23.50
▷ Minimum class complexity8.00
▷ Maximum class complexity39.00
Average method complexity2.15
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods39
▷ Static methods00.00%
▷ Public methods39100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants14
▷ Global constants321.43%
▷ Class constants1178.57%
▷ Public constants11100.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
PNG images were not found in this plugin