68% aw-schema

Code Review | AW Schema

WordPress plugin AW Schema scored68%from 54 tests.

About plugin

  • Plugin page: aw-schema
  • Plugin version: 1.0.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.3.2
  • WordPress version: 6.3.1
  • First release: Dec 30, 2015
  • Latest release: Jan 3, 2020
  • Number of updates: 8
  • Update frequency: every 183.1 days
  • Top authors: bkolbay (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,472 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.83MB] [CPU: ▼36.56ms] Passed 4 tests

Analyzing server-side resources used by AW Schema
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1147.12 ▲2.48
Dashboard /wp-admin3.12 ▼0.2227.42 ▼37.45
Posts /wp-admin/edit.php3.12 ▼0.2325.46 ▼26.85
Add New Post /wp-admin/post-new.php3.12 ▼2.7725.10 ▼69.28
Media Library /wp-admin/upload.php3.12 ▼0.1128.58 ▼12.64
Business Schema /wp-admin/options-general.php?page=aw-schema3.1225.36

Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] 67% from 3 tests

Analyzing filesystem and database footprints of this plugin
It is recommended to fix the following issues
  • The plugin illegally modified 1 file (4.00KB) outside of "wp-content/plugins/aw-schema/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

AW Schema: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,962 ▲17615.04 ▲0.651.97 ▲0.1744.06 ▲3.07
Dashboard /wp-admin2,366 ▲1606.44 ▲0.43134.95 ▲29.5438.74 ▼5.25
Posts /wp-admin/edit.php2,268 ▲1683.40 ▲1.4054.19 ▲15.1636.29 ▼0.07
Add New Post /wp-admin/post-new.php1,532 ▲617.40 ▼0.26657.27 ▲24.0732.04 ▼24.73
Media Library /wp-admin/upload.php1,405 ▲54.16 ▼0.0884.54 ▼23.8048.16 ▲0.64
Business Schema /wp-admin/options-general.php?page=aw-schema1,3643.0048.0429.50

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/aw-schema/admin-functions.php+69
    Undefined variable: social_settings_section
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=aw-schema
    • > Notice in wp-content/plugins/aw-schema/admin-functions.php+92
    Undefined variable: social_settings_section

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/aw-schema/admin-functions.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/aw-schema/aw-schema.php:23

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 is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === aw-schema === )
Please take inspiration from this readme.txt

aw-schema/aw-schema.php 92% from 13 tests

"AW Schema" version 1.0.2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Domain Path: The domain path folder does not exist ("/languages")

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
Everything looks great! No dangerous files found in this plugin376 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP29453348
JavaScript13316
CSS14012

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.15
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%
Functions33
▷ Named functions33100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin