84% perfectwp-wc-omnibus

Code Review | PerfectWP - WC Omnibus

WordPress plugin PerfectWP - WC Omnibus scored84%from 54 tests.

About plugin

  • Plugin page: perfectwp-wc-omnibus
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.1.1
  • WordPress version: 6.3.1
  • First release: Jun 4, 2022
  • Latest release: Jan 16, 2023
  • Number of updates: 8
  • Update frequency: every 28.4 days
  • Top authors: perfectlyproject (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

500+ active /2,604 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.36MB] [CPU: ▼0.63ms] Passed 4 tests

Analyzing server-side resources used by PerfectWP - WC Omnibus
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.82 ▲0.3642.63 ▼1.64
Dashboard /wp-admin3.67 ▲0.3654.76 ▲1.83
Posts /wp-admin/edit.php3.72 ▲0.3654.14 ▼4.69
Add New Post /wp-admin/post-new.php6.25 ▲0.3699.62 ▲9.37
Media Library /wp-admin/upload.php3.59 ▲0.3641.70 ▲1.99

Server storage [IO: ▲0.40MB] [DB: ▲0.00MB] 67% from 3 tests

A short overview of filesystem and database impact
Please fix the following
  • The plugin illegally modified 1 file (4.00KB) outside of "wp-content/plugins/perfectwp-wc-omnibus/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 53 new files
Database: 1 new table, 7 new options
New tables
wp_pwp_wco_history_prices
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts
pwp_wco_db_version
widget_recent-comments

Browser metrics Passed 4 tests

PerfectWP - WC Omnibus: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲6414.56 ▲0.161.96 ▼0.2040.14 ▼5.37
Dashboard /wp-admin2,232 ▲326.44 ▲0.54164.59 ▲48.8140.30 ▼2.98
Posts /wp-admin/edit.php2,112 ▲153.12 ▲1.1358.68 ▲18.9134.61 ▼3.11
Add New Post /wp-admin/post-new.php1,534 ▼1118.76 ▼4.53704.48 ▲15.8538.94 ▼15.12
Media Library /wp-admin/upload.php1,409 ▲65.63 ▲1.48119.30 ▲11.5144.78 ▲0.54

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'PerfectWPWCO\\Assets\\Style' not found in wp-content/plugins/perfectwp-wc-omnibus/public/plugin-assets.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

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
These attributes need your attention:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

perfectwp-wc-omnibus/perfectwp-wc-omnibus.php Passed 13 tests

"PerfectWP - WC Omnibus" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
39 characters long description:
Compatibility with EU Omnibus Directive

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
No dangerous file extensions were detected2,318 lines of code in 48 files:
LanguageFilesBlank linesComment linesLines of code
PHP446279412,274
PO File1101337
JSON1005
CSS1001
JavaScript1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity7.32
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity2.01
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces14
Interfaces0
Traits0
Classes34
▷ Abstract classes38.82%
▷ Concrete classes3191.18%
▷ Final classes13.23%
Methods222
▷ Static methods6227.93%
▷ Public methods20994.14%
▷ Protected methods31.35%
▷ Private methods104.50%
Functions12
▷ Named functions216.67%
▷ Anonymous functions1083.33%
Constants9
▷ Global constants00.00%
▷ Class constants9100.00%
▷ Public constants9100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin