84% aim-style-vault

Code Review | AIM Style Vault

WordPress plugin AIM Style Vault scored84%from 54 tests.

About plugin

  • Plugin page: aim-style-vault
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5.1
  • WordPress version: 6.3.1
  • First release: Jun 1, 2013
  • Latest release: Jun 1, 2013
  • Number of updates: 6
  • Update frequency: every 0.3 days
  • Top authors: AIMScott (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,736 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.04MB] [CPU: ▼1.63ms] Passed 4 tests

A check of server-side resources used by AIM Style Vault
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0545.15 ▲3.41
Dashboard /wp-admin3.35 ▲0.0449.91 ▼3.34
Posts /wp-admin/edit.php3.40 ▲0.0449.27 ▼3.29
Add New Post /wp-admin/post-new.php5.94 ▲0.0597.40 ▼0.29
Media Library /wp-admin/upload.php3.27 ▲0.0437.53 ▲0.39
AIM Style Vault /wp-admin/edit.php?post_type=aim_style_vault3.3236.39
Add New /wp-admin/post-new.php?post_type=aim_style_vault3.3143.34

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

AIM Style Vault: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲8413.24 ▼1.021.76 ▼0.0343.69 ▼0.74
Dashboard /wp-admin2,233 ▲454.88 ▲0.01110.96 ▼7.2744.24 ▲2.20
Posts /wp-admin/edit.php2,113 ▲242.02 ▲0.0139.44 ▲1.9734.38 ▲1.34
Add New Post /wp-admin/post-new.php1,556 ▲2623.30 ▲5.21635.50 ▼76.4454.10 ▼8.38
Media Library /wp-admin/upload.php1,418 ▲304.20 ▲0.0096.80 ▼10.6145.47 ▲0.44
AIM Style Vault /wp-admin/edit.php?post_type=aim_style_vault1,0801.9531.2529.99
Add New /wp-admin/post-new.php?post_type=aim_style_vault1,4872.5452.5944.18

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

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
Good news, no errors were detected

SRP 50% 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
Please fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/aim-style-vault/asv-styles.php:35
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/aim-style-vault/aim_metabox.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Contributors: The plugin contributors field is not present
Please take inspiration from this readme.txt

aim-style-vault/AIM Style Vault.php 92% from 13 tests

The main PHP script in "AIM Style Vault" version 1.0.0 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("aim-style-vault.php" instead of "AIM Style Vault.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin131 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP33243131

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.37
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin