84% wpazure-companion

Code Review | Wpazure Companion

WordPress plugin Wpazure Companion scored 84% from 54 tests.

About plugin

  • Plugin page: wpazure-companion
  • Plugin version: 0.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3.0-5.8.1
  • WordPress version: 6.3.1
  • First release: Jul 5, 2022
  • Latest release: Jul 31, 2022
  • Number of updates: 5
  • Update frequency: every 7.8 days
  • Top authors: wpazure (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 346 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.77ms] Passed 4 tests

An overview of server-side resources used by Wpazure Companion
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.41 ▼1.42
Dashboard /wp-admin3.32 ▲0.0243.17 ▼8.37
Posts /wp-admin/edit.php3.37 ▲0.0146.23 ▲0.87
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.14 ▼6.16
Media Library /wp-admin/upload.php3.24 ▲0.0133.21 ▲1.14

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Wpazure Companion
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.20 ▼1.101.76 ▼0.3243.76 ▼7.84
Dashboard /wp-admin2,206 ▲174.83 ▼1.05112.71 ▲7.6342.48 ▼1.72
Posts /wp-admin/edit.php2,086 ▼32.02 ▲0.0039.56 ▲2.3337.05 ▲1.92
Add New Post /wp-admin/post-new.php1,542 ▲518.33 ▼5.01606.60 ▲3.5460.88 ▲9.49
Media Library /wp-admin/upload.php1,388 ▲64.20 ▼0.0196.60 ▼0.2440.50 ▼0.79

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 9× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/wpazure-companion/inc/finaco/sections/service-section.php:147
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wpazure-companion/wpazure-companion.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/wpazure-companion/inc/finaco/sections/slider-section.php:129
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpazure-companion/inc/finaco/features/home-section-settings.php:1477
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/wpazure-companion/inc/finaco/sections/cta-section.php:58
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/wpazure-companion/inc/finaco/sections/testimonial-section.php:168
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/wpazure-companion/inc/finaco/sections/project-section.php:141
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/wpazure-companion/inc/finaco/sections/news-section.php:105
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpazure-companion/inc/finaco/features/news-section.php:68

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: widgets, widget, admin

wpazure-companion/wpazure-companion.php 92% from 13 tests

The primary PHP file in "Wpazure Companion" version 0.3 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Requires at least: Required version does not match the one declared in readme.txt ("4.5" instead of "3.3.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin2,761 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP115752332,481
JavaScript15863173
CSS1173107

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity5.50
▷ Minimum class complexity1.00
▷ Maximum class complexity10.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions72
▷ Named functions72100.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/finaco/images/slider/slide-dot.png0.10KB0.10KB0.00%
inc/customizer/lib/class-alpha-color-control/css/transparency-grid.png2.58KB2.80KB0.00%