84% weaver-options-merge

Code Review | Weaver Options Merge

WordPress plugin Weaver Options Merge scored84%from 54 tests.

About plugin

  • Plugin page: weaver-options-merge
  • Plugin version: 0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.3.2
  • WordPress version: 6.3.1
  • First release: Jan 11, 2015
  • Latest release: Jan 30, 2020
  • Number of updates: 8
  • Update frequency: every 230.6 days
  • Top authors: joyously (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,578 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.15MB] [CPU: ▼8.56ms] Passed 4 tests

This is a short check of server-side resources used by Weaver Options Merge
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1638.97 ▼2.11
Dashboard /wp-admin3.47 ▲0.1349.36 ▼16.63
Posts /wp-admin/edit.php3.58 ▲0.2352.34 ▲0.07
Add New Post /wp-admin/post-new.php6.05 ▲0.1686.46 ▼15.56
Media Library /wp-admin/upload.php3.39 ▲0.1640.28 ▲1.78
Weaver Options Merge /wp-admin/tools.php?page=wom-merge3.3436.71

Server storage [IO: ▲0.64MB] [DB: ▲0.01MB] Passed 3 tests

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Weaver Options Merge
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.34 ▲0.151.73 ▲0.1044.61 ▼1.80
Dashboard /wp-admin2,202 ▲255.58 ▲0.0084.42 ▼2.2242.47 ▲4.43
Posts /wp-admin/edit.php2,104 ▲71.95 ▼0.0341.21 ▲6.7339.92 ▼0.07
Add New Post /wp-admin/post-new.php1,529 ▲323.46 ▲0.36705.98 ▲30.1352.61 ▲1.65
Media Library /wp-admin/upload.php1,404 ▲44.22 ▲0.09109.10 ▼7.6248.78 ▼0.32
Weaver Options Merge /wp-admin/tools.php?page=wom-merge1,3512.8062.2143.99

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

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

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/tools.php?page=wom-merge
    • > Warning in wp-admin/includes/file.php+152
    opendir(wp-content/uploads/weaverii-subthemes/): failed to open dir: No such file or directory
    • > GET request to /wp-admin/tools.php?page=wom-merge
    • > Warning in wp-admin/includes/file.php+152
    opendir(wp-content/themes/weaver-ii/): failed to open dir: No such file or directory
    • > GET request to /wp-admin/tools.php?page=wom-merge
    • > Warning in wp-admin/includes/file.php+152
    opendir(wp-content/uploads/aspen-subthemes/): failed to open dir: No such file or directory
    • > GET request to /wp-admin/tools.php?page=wom-merge
    • > Warning in wp-admin/includes/file.php+152
    opendir(wp-content/themes/aspen/): failed to open dir: No such file or directory
    • > GET request to /wp-admin/tools.php?page=wom-merge
    • > Warning in wp-admin/includes/file.php+152
    opendir(wp-content/uploads/weaverx-subthemes/): failed to open dir: No such file or directory
    • > GET request to /wp-admin/tools.php?page=wom-merge
    • > Warning in wp-admin/includes/file.php+152
    opendir(wp-content/themes/weaver-xtreme/): failed to open dir: No such file or directory
    • > GET request to /wp-admin/tools.php?page=wom-merge
    • > Warning in wp-admin/includes/file.php+152
    opendir(wp-content/uploads/weaver-subthemes/): failed to open dir: No such file or directory
    • > GET request to /wp-admin/tools.php?page=wom-merge
    • > Warning in wp-admin/includes/file.php+152
    opendir(wp-content/themes/weaver/): failed to open dir: No such file or directory

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (The plugin admin page, showing the Weaver II choices.), #2 (The merge page, with options selected from both files.)
Please take inspiration from this readme.txt

weaver-options-merge/weaver-options-merge.php Passed 13 tests

The main PHP script in "Weaver Options Merge" version 0.4 is automatically included on every request by WordPress
72 characters long description:
Merge two settings files from Weaver II, Aspen, Weaver Xtreme, or Weaver

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin940 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP14463631
PO File276174198
JavaScript10289
CSS111522

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.37
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%
Functions38
▷ Named functions38100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected