84% weaver-ii-to-weaver-xtreme

Code Review | Weaver II to Weaver Xtreme

WordPress plugin Weaver II to Weaver Xtreme scored84%from 54 tests.

About plugin

  • Plugin page: weaver-ii-to-weav...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.9
  • WordPress version: 6.3.1
  • First release: Feb 7, 2015
  • Latest release: May 14, 2018
  • Number of updates: 6
  • Update frequency: every 199.0 days
  • Top authors: wpweaver (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

400+ active /5,811 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼1.16ms] Passed 4 tests

This is a short check of server-side resources used by Weaver II to Weaver Xtreme
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.11 ▲1.42
Dashboard /wp-admin3.32 ▲0.0249.87 ▲4.00
Posts /wp-admin/edit.php3.37 ▲0.0244.69 ▲0.47
Add New Post /wp-admin/post-new.php5.90 ▲0.0286.58 ▼8.74
Media Library /wp-admin/upload.php3.24 ▲0.0235.76 ▲2.22
Weaver Converter /wp-admin/tools.php?page=wii2wx_tools3.4431.19

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Weaver II to Weaver Xtreme: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6013.59 ▼1.164.63 ▲2.9943.37 ▲0.63
Dashboard /wp-admin2,210 ▲195.84 ▲0.9598.73 ▼4.4939.01 ▼6.37
Posts /wp-admin/edit.php2,096 ▲42.00 ▼0.0136.33 ▼8.3234.58 ▼2.96
Add New Post /wp-admin/post-new.php1,517 ▼2517.57 ▼1.00665.90 ▲64.7059.00 ▲2.60
Media Library /wp-admin/upload.php1,392 ▲44.21 ▼0.0196.28 ▼2.8444.25 ▲1.42
Weaver Converter /wp-admin/tools.php?page=wii2wx_tools1,0172.0726.1137.39

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% 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
The following issues need your attention
  • 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/weaver-ii-to-weaver-xtreme/wii2wx_core.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/weaver-ii-to-weaver-xtreme/wii2wx_core.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
1 plugin tags: weaver plugins

weaver-ii-to-weaver-xtreme/wii2wx.php 85% from 13 tests

The principal PHP file in "Weaver II to Weaver Xtreme" v. 1.1 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("weaver-ii-to-weaver-xtreme.php" instead of "wii2wx.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 142 characters long)

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
Everything looks great! No dangerous files found in this plugin2,211 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP92291511,886
JavaScript37830172
CSS22724153

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.40
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%
Functions54
▷ Named functions54100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/images/download.png1.50KB0.33KB▼ 77.72%
includes/images/default-button.png2.42KB2.12KB▼ 12.58%