10% aquila-features

Code Review | Aquila Features

WordPress plugin Aquila Features scored 10% from 54 tests.

About plugin

  • Plugin page: aquila-features
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.0
  • WordPress version: 6.3.1
  • First release: Jul 25, 2022
  • Latest release: Jul 25, 2022
  • Number of updates: 5
  • Update frequency: every 2.4 days
  • Top authors: gsayed786 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 265 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
  • The plugin did not install without errors
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, class 'AquilaFeatures\Plugin' does not have a method 'activate'

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.89ms] Passed 4 tests

Server-side resources used by Aquila Features
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.02 ▼5.46
Dashboard /wp-admin3.32 ▲0.0244.55 ▼9.31
Posts /wp-admin/edit.php3.37 ▲0.0245.13 ▲0.29
Add New Post /wp-admin/post-new.php5.92 ▲0.0491.98 ▼1.06
Media Library /wp-admin/upload.php3.24 ▲0.0236.26 ▲0.35

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Aquila Features
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲4513.24 ▼1.154.21 ▲2.1942.00 ▼9.13
Dashboard /wp-admin2,206 ▲185.87 ▲0.97106.58 ▼11.3443.13 ▲0.04
Posts /wp-admin/edit.php2,086 ▼32.00 ▼0.1338.59 ▼0.1434.23 ▼3.71
Add New Post /wp-admin/post-new.php1,546 ▲1318.47 ▼4.63653.34 ▼28.0053.12 ▼6.79
Media Library /wp-admin/upload.php1,382 ▼34.18 ▲0.04100.75 ▼0.7342.33 ▼1.34

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin cannot be uninstalled
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, class 'AquilaFeatures\Plugin' does not have a method 'deactivate'
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/aquila-features/templates/patterns/two-columns-secondary.php
    • > /wp-content/plugins/aquila-features/templates/patterns/two-columns.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/aquila-features/aquila-features.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 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
Attributes that need to be fixed: The official readme.txt might help

aquila-features/aquila-features.php 77% from 13 tests

This is the main PHP file of "Aquila Features" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Requires at least: The required version number must match the one declared in readme.txt ("4.6" instead of "5.2")
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • Requires PHP: The required version number must match the one declared in readme.txt ("5.2.4" instead of "7.2")

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
No dangerous file extensions were detected804 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP18279277758
JavaScript1103141
JSON1005
CSS1130

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity13.43
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.93
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods46
▷ Static methods1532.61%
▷ Public methods4189.13%
▷ Protected methods00.00%
▷ Private methods510.87%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected