78% nexweave

Code Review | Nexweave

WordPress plugin Nexweave scored78%from 54 tests.

About plugin

  • Plugin page: nexweave
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.5.1
  • WordPress version: 6.3.1
  • First release: Sep 24, 2020
  • Latest release: Nov 2, 2020
  • Number of updates: 8
  • Update frequency: every 5.0 days
  • Top authors: nexweave (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /486 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.24MB] [CPU: ▼15.96ms] Passed 4 tests

This is a short check of server-side resources used by Nexweave
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0246.39 ▲5.01
Dashboard /wp-admin3.07 ▼0.2728.49 ▼33.51
Posts /wp-admin/edit.php3.21 ▼0.1534.64 ▼12.13
Add New Post /wp-admin/post-new.php5.45 ▼0.4471.38 ▼14.61
Media Library /wp-admin/upload.php3.14 ▼0.0929.20 ▼3.59

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 103 new files
Database: 1 new table, 6 new options
New tables
wp_nexweave
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Nexweave
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,902 ▲15613.55 ▼0.758.82 ▲7.0541.88 ▲1.78
Dashboard /wp-admin2,225 ▲364.84 ▼1.08102.27 ▼10.6341.15 ▼3.29
Posts /wp-admin/edit.php2,105 ▲162.03 ▼0.0239.29 ▲4.3335.80 ▲1.14
Add New Post /wp-admin/post-new.php1,556 ▲2318.21 ▼4.94633.23 ▼35.2155.10 ▼1.89
Media Library /wp-admin/upload.php1,404 ▲134.24 ▲0.0597.70 ▼9.1344.06 ▲0.14

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
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 4× PHP files output text when accessed directly:
    • > /wp-content/plugins/nexweave/public/partials/nexweave-public-display.php
    • > /wp-content/plugins/nexweave/admin/partials/template-dashboard.php
    • > /wp-content/plugins/nexweave/admin/partials/nexweave-admin-display.php
    • > /wp-content/plugins/nexweave/admin/partials/create-experience.php
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_current_user() in wp-content/plugins/nexweave/admin/partials/create-experience.php:91
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/nexweave/admin/partials/experience-table.php on line 20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_current_user() in wp-content/plugins/nexweave/admin/partials/create-experience.php:91
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/nexweave/admin/partials/experience-table.php:21

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)
There were no browser issues found

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
Attributes that require attention:
  • Donate link: Invalid URI found ("")
Please take inspiration from this readme.txt

nexweave/nexweave.php Passed 13 tests

Analyzing the main PHP file in "Nexweave" version 1.1.0
78 characters long description:
Create Interactive Videos with Personalization on your wordpress pages, blogs.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected93,256 lines of code in 68 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1015,95522,09869,441
CSS131,57615116,929
SVG1002,671
Sass1434341,768
LESS1434441,758
PHP15169577687
Markdown1002

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity5.14
▷ Minimum class complexity1.00
▷ Maximum class complexity14.00
Average method complexity1.81
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods36
▷ Static methods12.78%
▷ Public methods3186.11%
▷ Protected methods00.00%
▷ Private methods513.89%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
12 PNG files occupy 0.70MB with 0.37MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/js/DataTables/DataTables-1.10.21/images/sort_asc.png0.16KB0.25KB0.00%
assets/icon-256x256.png31.00KB13.07KB▼ 57.85%
assets/images/banner-772x250.png73.37KB14.87KB▼ 79.74%
assets/screenshot-2.png436.94KB137.03KB▼ 68.64%
assets/banner-772x250.png17.01KB6.62KB▼ 61.06%