90% wooadvance-settings

Code Review | WooAdvance Settings

WordPress plugin WooAdvance Settings scored90%from 54 tests.

About plugin

  • Plugin page: wooadvance-settings
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.8
  • WordPress version: 6.3.1
  • First release: May 17, 2017
  • Latest release: Jun 7, 2017
  • Number of updates: 6
  • Update frequency: every 16.2 days
  • Top authors: rkshah263 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /594 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
Install script ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼3.27ms] Passed 4 tests

This is a short check of server-side resources used by WooAdvance Settings
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0639.58 ▼9.18
Dashboard /wp-admin3.37 ▲0.0651.72 ▲5.32
Posts /wp-admin/edit.php3.42 ▲0.0654.38 ▲2.21
Add New Post /wp-admin/post-new.php5.95 ▲0.0687.37 ▼11.42
Media Library /wp-admin/upload.php3.29 ▲0.0635.33 ▲5.55

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for WooAdvance Settings
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.24 ▼0.381.71 ▼0.2241.60 ▼4.27
Dashboard /wp-admin2,195 ▲215.63 ▼0.0585.75 ▼6.4038.47 ▼3.43
Posts /wp-admin/edit.php2,100 ▼31.94 ▼0.0639.06 ▼1.5836.94 ▲3.68
Add New Post /wp-admin/post-new.php1,528 ▲222.95 ▼0.26685.07 ▲73.8066.48 ▲8.86
Media Library /wp-admin/upload.php1,400 ▼34.17 ▲0.0196.04 ▼7.7843.95 ▲0.26

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
These attributes need to be fixed: You can look at the official readme.txt

wooadvance-settings/wooadvance-settings.php Passed 13 tests

The entry point to "WooAdvance Settings" version 1.1 is a PHP file that has certain tags in its header comment area
40 characters long description:
Advance Settings For WooCommerce Website

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected331 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13815331

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.65
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods5100.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin