84% aquila-admin-theme

Code Review | Aquila Admin Theme

WordPress plugin Aquila Admin Theme scored84%from 54 tests.

About plugin

  • Plugin page: aquila-admin-theme
  • Plugin version: 3.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.7
  • WordPress version: 6.3.1
  • First release: Jun 15, 2016
  • Latest release: May 31, 2021
  • Number of updates: 45
  • Update frequency: every 40.3 days
  • Top authors: GuyPrimavera (100%)

Code review

54 tests

User reviews

35 reviews

Install metrics

6,000+ active /60,628 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲1.71MB] [CPU: ▲4.20ms] Passed 4 tests

This is a short check of server-side resources used by Aquila Admin Theme
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /5.11 ▲1.6555.36 ▲20.08
Dashboard /wp-admin5.02 ▲1.6750.14 ▼4.36
Posts /wp-admin/edit.php5.16 ▲1.8066.41 ▲19.24
Add New Post /wp-admin/post-new.php7.72 ▲1.8486.62 ▼16.54
Media Library /wp-admin/upload.php4.96 ▲1.7351.11 ▲18.47
Aquila /wp-admin/options-general.php?page=aquilaSettings4.9549.69

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 87 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Aquila Admin Theme: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,032 ▼72914.93 ▲0.647.14 ▲5.5537.78 ▼0.33
Dashboard /wp-admin1,469 ▼7126.18 ▲0.49102.94 ▲5.5863.71 ▲20.92
Posts /wp-admin/edit.php2,256 ▲1533.61 ▲1.6454.29 ▲9.2650.69 ▲15.86
Add New Post /wp-admin/post-new.php1,676 ▲14822.28 ▲1.33648.98 ▲45.6750.20 ▲1.39
Media Library /wp-admin/upload.php1,397 ▼64.35 ▲0.1696.82 ▼2.7346.72 ▲5.02
Aquila /wp-admin/options-general.php?page=aquilaSettings1,0763.4043.5837.86

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% 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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/aquila-admin-theme/admin/options/registerSettings.php:3

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 errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% 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 require attention:
  • Tags: Please delete some tags, you are using 29 tag instead of maximum 10
  • Screenshots: A description for screenshot #8 is required in aquila-admin-theme/assets to your readme.txt
Please take inspiration from this readme.txt

aquila-admin-theme/aquila-admin-theme.php Passed 13 tests

The main PHP file in "Aquila Admin Theme" ver. 3.1.1 adds more information about the plugin and also serves as the entry point for this plugin
22 characters long description:
The Aquila Admin Theme

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin13,140 lines of code in 69 files:
LanguageFilesBlank linesComment linesLines of code
PHP408125144,905
CSS89273,157
LESS125431982,974
JSON1001,413
PO File3189205431
JavaScript21115155
SVG21059
Markdown119046

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity135.20
▷ Minimum class complexity1.00
▷ Maximum class complexity352.00
Average method complexity4.90
▷ Minimum method complexity1.00
▷ Maximum method complexity52.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods172
▷ Static methods42.33%
▷ Public methods3118.02%
▷ Protected methods14181.98%
▷ Private methods00.00%
Functions79
▷ Named functions7898.73%
▷ Anonymous functions11.27%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/aqlMini.png8.80KB4.37KB▼ 50.38%
images/aqlMiniWhite.png7.73KB4.18KB▼ 45.83%
images/aqlFull.png30.72KB15.96KB▼ 48.05%
images/aqlLogo.png35.55KB16.59KB▼ 53.33%