88% aazeen-extension

Code Review | Aazeen extension

WordPress plugin Aazeen extension scored 88% from 54 tests.

About plugin

  • Plugin page: aazeen-extension
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.9.4
  • WordPress version: 5.8.1
  • First release: Feb 22, 2018
  • Latest release: Jun 12, 2018
  • Number of updates: 11
  • Update frequency: every 10.1 days
  • Top authors: themezwp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,247 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

An overview of server-side resources used by Aazeen extension
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.96 ▲0.2442.37 ▲20.96
Dashboard /wp-admin3.22 ▲0.1657.43 ▲10.99
Posts /wp-admin/edit.php3.26 ▲0.1549.80 ▼7.15
Add New Post /wp-admin/post-new.php5.58 ▲0.1596.59 ▼568.94
Media Library /wp-admin/upload.php3.16 ▲0.1637.65 ▲1.95
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins3.1734.86
Import Demo Data /wp-admin/admin.php?page=pt-one-click-demo-import3.1434.40

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 141 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Aazeen extension: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,841 ▲20416.06 ▲0.558.17 ▼1.8448.72 ▼3.46
Dashboard /wp-admin3,125 ▲1916.28 ▲0.33146.21 ▲2.06132.32 ▲17.95
Posts /wp-admin/edit.php2,919 ▲1803.03 ▲0.3574.16 ▲4.6895.01 ▼0.55
Add New Post /wp-admin/post-new.php1,816 ▲13324.16 ▲5.44390.69 ▲12.27117.10 ▼8.34
Media Library /wp-admin/upload.php1,916 ▲1065.11 ▲0.10143.34 ▼8.77157.17 ▲28.63
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins1,5332.6563.58101.48
Import Demo Data /wp-admin/admin.php?page=pt-one-click-demo-import1,3642.5971.11133.51

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

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

SRP 0% 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
Please fix the following items
  • 7× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/aazeen-extension/siteorigin-pro.php
    • > /wp-content/plugins/aazeen-extension/function-demo-pro.php
    • > /wp-content/plugins/aazeen-extension/one-click-demo-import/one-click-demo-import.php
    • > /wp-content/plugins/aazeen-extension/function-demo.php
    • > /wp-content/plugins/aazeen-extension/siteorigin.php
    • > /wp-content/plugins/aazeen-extension/aazeen-extensions.php
    • > /wp-content/plugins/aazeen-extension/inc/widgets-so/numc-widget/tpl/number.php
  • 29× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Importer' not found in wp-content/plugins/aazeen-extension/one-click-demo-import/vendor/proteusthemes/wp-content-importer-v2/src/WXRImporter.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/aazeen-extension/inc/widget-slider.php:13
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/aazeen-extension/one-click-demo-import/views/plugin-page.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/aazeen-extension/inc/product-carousel.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/aazeen-extension/inc/default.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Customize_Setting' not found in wp-content/plugins/aazeen-extension/one-click-demo-import/inc/CustomizerOption.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/aazeen-extension/inc/widget-service.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/aazeen-extension/inc/widget-contact.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'SiteOrigin_Widget' not found in wp-content/plugins/aazeen-extension/inc/widgets-so/prit-widget/prit-widget.php:9
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/aazeen-extension/inc/widgets-so/numc-widget/tpl/number.php on line 11

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

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: widgets, siteorigin, clients, widget, team members

aazeen-extension/aazeen-extensions.php 85% from 13 tests

The entry point to "Aazeen extension" version 1.0.7 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("aazeen-extension.php" instead of "aazeen-extensions.php")

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
There were no executable files found in this plugin44,021 lines of code in 100 files:
LanguageFilesBlank linesComment linesLines of code
XML1042720012,451
PHP522,5944,15412,126
JSON7008,383
JavaScript141,2483814,793
CSS10122543,400
SVG4032,762
LESS219092
Markdown111014

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity39.46
▷ Minimum class complexity1.00
▷ Maximum class complexity290.00
Average method complexity5.68
▷ Minimum method complexity1.00
▷ Maximum method complexity62.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes41
▷ Abstract classes00.00%
▷ Concrete classes41100.00%
▷ Final classes12.44%
Methods338
▷ Static methods4112.13%
▷ Public methods25274.56%
▷ Protected methods5917.46%
▷ Private methods277.99%
Functions64
▷ Named functions6195.31%
▷ Anonymous functions34.69%
Constants9
▷ Global constants444.44%
▷ Class constants555.56%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
10 PNG files occupy 0.33MB with 0.21MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/testi62.png58.71KB21.66KB▼ 63.10%
demo/shop1/demo.png68.79KB22.71KB▼ 66.99%
images/ghost2-64x64.png3.93KB1.39KB▼ 64.64%
images/pig2-64x64.png3.76KB1.35KB▼ 64.15%
images/testi22.png61.76KB23.29KB▼ 62.30%