89% schema-removal

Code Review | Schema Removal

WordPress plugin Schema Removal scored89%from 54 tests.

About plugin

  • Plugin page: schema-removal
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.5.2
  • WordPress version: 6.3.1
  • First release: May 23, 2016
  • Latest release: Jun 18, 2016
  • Number of updates: 16
  • Update frequency: every 1.8 days
  • Top authors: hishaman (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

80+ active /2,569 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.51ms] Passed 4 tests

An overview of server-side resources used by Schema Removal
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.25 ▼9.26
Dashboard /wp-admin3.31 ▲0.0046.40 ▼5.21
Posts /wp-admin/edit.php3.36 ▲0.0048.39 ▲3.21
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.41 ▼2.12
Media Library /wp-admin/upload.php3.23 ▲0.0033.87 ▼1.45

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Schema Removal
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.74 ▲0.411.62 ▼0.2840.93 ▼1.79
Dashboard /wp-admin2,206 ▲185.88 ▲0.00108.33 ▼9.7039.86 ▼3.98
Posts /wp-admin/edit.php2,086 ▼32.06 ▼0.1240.04 ▲0.5534.40 ▼1.94
Add New Post /wp-admin/post-new.php1,533 ▼123.14 ▼0.11599.19 ▼69.8551.20 ▼8.94
Media Library /wp-admin/upload.php1,391 ▼04.33 ▲0.0699.04 ▲2.0841.21 ▼3.29

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Tags: There are too many tags (19 tag instead of maximum 10)
The official readme.txt is a good inspiration

schema-removal/schema-removal.php 85% from 13 tests

Analyzing the main PHP file in "Schema Removal" version 1.1.1
Please take the time to fix the following:
  • Domain Path: Use only dashes and lowercase characters for the domain path ("languages")
  • Domain Path: Prefix the domain path with a forward slash character ("/languages")

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
Everything looks great! No dangerous files found in this plugin56 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2195056

PHP code Passed 2 tests

Analyzing 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.10
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin