78% azeen-core

Code Review | Azeen Core

WordPress plugin Azeen Core scored78%from 54 tests.

About plugin

  • Plugin page: azeen-core
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.1
  • WordPress version: 6.3.1
  • First release: Mar 18, 2019
  • Latest release: Jun 26, 2019
  • Number of updates: 3
  • Update frequency: every 37.0 days
  • Top authors: imon Hasan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /582 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲4.43MB] [CPU: ▲17.05ms] Passed 4 tests

This is a short check of server-side resources used by Azeen Core
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /8.65 ▲5.1873.76 ▲29.28
Dashboard /wp-admin8.45 ▲5.1484.49 ▲39.38
Posts /wp-admin/edit.php8.51 ▲5.1674.68 ▲21.57
Add New Post /wp-admin/post-new.php8.11 ▲2.2288.51 ▼17.46
Media Library /wp-admin/upload.php8.45 ▲5.2371.43 ▲34.79

Server storage [IO: ▲2.70MB] [DB: ▲0.15MB] Passed 3 tests

Filesystem and database footprint
This plugin installed successfully
Filesystem: 299 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Azeen Core
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5814.35 ▼0.431.99 ▲0.3344.20 ▲4.18
Dashboard /wp-admin2,195 ▲185.64 ▲0.1184.42 ▼6.8338.40 ▼1.18
Posts /wp-admin/edit.php2,100 ▼02.16 ▲0.1937.22 ▼3.4634.04 ▼2.21
Add New Post /wp-admin/post-new.php1,526 ▼022.12 ▼0.82672.08 ▲21.0555.23 ▲2.55
Media Library /wp-admin/upload.php1,403 ▲64.25 ▼0.01100.27 ▼13.7546.14 ▼5.93

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
Please take a closer look at the following
  • 9× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/azeen-core/inc/kirki/modules/webfonts/class-kirki-fonts-google-local.php
    • > /wp-content/plugins/azeen-core/inc/kirki/core/dynamic-css.php
    • > /wp-content/plugins/azeen-core/inc/kirki/controls/views/textarea.php
    • > /wp-content/plugins/azeen-core/inc/kirki/controls/views/code.php
    • > /wp-content/plugins/azeen-core/inc/kirki/controls/views/radio.php
    • > /wp-content/plugins/azeen-core/inc/kirki/controls/views/select.php
    • > /wp-content/plugins/azeen-core/inc/kirki/controls/views/number.php
    • > /wp-content/plugins/azeen-core/inc/kirki/controls/views/color.php
    • > /wp-content/plugins/azeen-core/inc/kirki/controls/views/generic.php
  • 65× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Kirki_Field_Kirki_Generic' not found in wp-content/plugins/azeen-core/inc/kirki/field/class-kirki-field-url.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Kirki_Field' not found in wp-content/plugins/azeen-core/inc/kirki/field/class-kirki-field-repeater.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Kirki_Field' not found in wp-content/plugins/azeen-core/inc/kirki/field/class-kirki-field-upload.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Customize_Cropped_Image_Control' not found in wp-content/plugins/azeen-core/inc/kirki/controls/php/class-kirki-control-cropped-image.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Kirki_Field' not found in wp-content/plugins/azeen-core/inc/kirki/field/class-kirki-field-typography.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_normalize_path() in wp-content/plugins/azeen-core/inc/kirki/deprecated/deprecated.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Kirki_Field_Kirki_Generic' not found in wp-content/plugins/azeen-core/inc/kirki/field/class-kirki-field-text.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Kirki_Field' not found in wp-content/plugins/azeen-core/inc/kirki/field/class-kirki-field-background.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/azeen-core/inc/kirki/controls/views/image.php:34
    • > PHP Fatal error
      Uncaught Error: Class 'Kirki_Output_Property' not found in wp-content/plugins/azeen-core/inc/kirki/modules/css/property/class-kirki-output-property-background-image.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: widgets, siteorigin, widget, clients, team members

azeen-core/azeen-core.php 92% from 13 tests

The entry point to "Azeen Core" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Domain Path: The domain path folder was not found ("/languages")

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 detected35,459 lines of code in 268 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript903,7062,45414,003
PHP1612,4198,15711,000
JSON4008,318
CSS817361,884
SVG301182
Sass17145
YAML17027

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.47
Average class complexity12.45
▷ Minimum class complexity1.00
▷ Maximum class complexity186.00
Average method complexity4.03
▷ Minimum method complexity1.00
▷ Maximum method complexity50.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes148
▷ Abstract classes00.00%
▷ Concrete classes148100.00%
▷ Final classes106.76%
Methods560
▷ Static methods11420.36%
▷ Public methods33860.36%
▷ Protected methods19033.93%
▷ Private methods325.71%
Functions38
▷ Named functions1436.84%
▷ Anonymous functions2463.16%
Constants9
▷ Global constants9100.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
16 PNG files occupy 0.27MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/testi12.png63.61KB24.43KB▼ 61.59%
inc/kirki/assets/images/3cr.png0.91KB0.32KB▼ 64.81%
images/online.png6.04KB2.54KB▼ 57.90%
images/testi52.png62.33KB23.74KB▼ 61.91%
images/ghost2-64x64.png3.93KB1.39KB▼ 64.64%