84% arile-extra

Code Review | Arile Extra

WordPress plugin Arile Extra scored 84% from 54 tests.

About plugin

  • Plugin page: arile-extra
  • Plugin version: 3.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Jul 13, 2019
  • Latest release: Nov 16, 2021
  • Number of updates: 33
  • Update frequency: every 26.0 days
  • Top authors: themearile (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20,000+ active / 208,354 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼144.59ms] Passed 4 tests

Analyzing server-side resources used by Arile Extra
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1335.22 ▲8.63
Dashboard /wp-admin3.09 ▲0.0347.53 ▼9.44
Posts /wp-admin/edit.php3.14 ▲0.0349.58 ▲1.24
Add New Post /wp-admin/post-new.php5.44 ▲0.01102.14 ▼565.41
Media Library /wp-admin/upload.php3.03 ▲0.0336.32 ▼4.74

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 172 new files
Database: no new tables, 1 new option
New WordPress options
fresh_site_activate

Browser metrics Passed 4 tests

Arile Extra: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,629 ▲5715.87 ▲0.2912.01 ▲0.9112.07 ▼44.81
Dashboard /wp-admin2,970 ▲375.94 ▲0.02170.40 ▲1.07128.16 ▼0.81
Posts /wp-admin/edit.php2,749 ▲102.72 ▲0.0077.19 ▼10.5597.46 ▲2.22
Add New Post /wp-admin/post-new.php1,615 ▼6821.40 ▲2.63313.71 ▼136.12110.05 ▼8.41
Media Library /wp-admin/upload.php1,807 ▼05.05 ▲0.01167.48 ▼6.60132.51 ▲3.70

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 1 option
    • fresh_site_activate

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
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following items
  • 52× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/arile-extra/inc/arilewp/customizer/extra-arilewp-customizer-options.php:172
    • > PHP Notice
      Undefined variable: activate_theme in wp-content/plugins/arile-extra/inc/consultstreet/front-page/extra-consultstreet-cta.php on line 19
    • > PHP Notice
      Undefined variable: activate_theme in wp-content/plugins/arile-extra/inc/consultstreet/front-page/extra-consultstreet-cta.php on line 2
    • > PHP Warning
      require(arile_extra_plugin_dirinc/arilewp/customizer/extra-arilewp-customizer.php): failed to open stream: No such file or directory in wp-content/plugins/arile-extra/inc/arilewp/arilewp.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/arile-extra/inc/consultstreet/front-page/extra-consultstreet-theme-info.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/arile-extra/inc/designexo/front-page/extra-designexo-blog.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/arile-extra/inc/consultstreet/front-page/extra-consultstreet-blog.php:2
    • > PHP Warning
      Use of undefined constant arile_extra_plugin_dir - assumed 'arile_extra_plugin_dir' (this will throw an Error in a future version of PHP) in wp-content/plugins/arile-extra/inc/arilewp/arilewp.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/arile-extra/arile-extra.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/arile-extra/inc/arilewp/front-page/extra-strangerwp-slider.php:2

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)
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Requires at least: The plugin version is formatted incorrectly
The official readme.txt might help

arile-extra/arile-extra.php Passed 13 tests

The main PHP script in "Arile Extra" version 3.3 is automatically included on every request by WordPress
62 characters long description:
Arile Extra Enhances ThemeArile with additional functionality.

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
Good job! No executable or dangerous file extensions detected7,012 lines of code in 63 files:
LanguageFilesBlank linesComment linesLines of code
PHP608244366,868
JavaScript23248121
CSS17223

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity1.32
▷ Minimum class complexity1.00
▷ Maximum class complexity5.00
Average method complexity1.30
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes25
▷ Abstract classes00.00%
▷ Concrete classes25100.00%
▷ Final classes00.00%
Methods27
▷ Static methods13.70%
▷ Public methods27100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions38
▷ Named functions38100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.76MB with 0.55MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
inc/consultstreet/images/about-img-1.png773.39KB214.66KB▼ 72.24%