84% schema-factory-free

Code Review | Schema Factory Free

WordPress plugin Schema Factory Free scored 84% from 54 tests.

About plugin

  • Plugin page: schema-factory-free
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.9.7
  • WordPress version: 6.3.1
  • First release: Jul 18, 2018
  • Latest release: Oct 2, 2018
  • Number of updates: 7
  • Update frequency: every 10.9 days
  • Top authors: kylefrischman (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active / 655 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.01MB] [CPU: ▼4.14ms] Passed 4 tests

An overview of server-side resources used by Schema Factory Free
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.01 ▼2.97
Dashboard /wp-admin3.31 ▲0.0146.43 ▼3.72
Posts /wp-admin/edit.php3.36 ▲0.0151.84 ▲4.63
Add New Post /wp-admin/post-new.php5.91 ▲0.0287.96 ▼11.08
Media Library /wp-admin/upload.php3.23 ▲0.0136.14 ▲1.20

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
wdac_options
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Schema Factory Free
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,944 ▲20914.18 ▼0.471.72 ▼0.4848.75 ▼0.04
Dashboard /wp-admin2,350 ▲1625.46 ▼0.57121.82 ▲15.2138.65 ▼3.96
Posts /wp-admin/edit.php2,224 ▲1322.33 ▲0.3143.26 ▲2.9135.31 ▼1.35
Add New Post /wp-admin/post-new.php1,540 ▲2123.32 ▼0.03596.37 ▼82.6633.65 ▼15.76
Media Library /wp-admin/upload.php1,517 ▲1264.85 ▲0.65104.03 ▼3.8745.38 ▲1.72

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-posts
    • wdac_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

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
The following issues need your attention
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/schema-factory-free/wdac.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/schema-factory-free/template/wdac-setting.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes: Please take inspiration from this readme.txt

schema-factory-free/wdac.php 92% from 13 tests

The main file in "Schema Factory Free" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("schema-factory-free.php" instead of "wdac.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected393 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP57414301
CSS10070
JavaScript121222

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity5.67
▷ Minimum class complexity1.00
▷ Maximum class complexity9.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants3
▷ Global constants3100.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 are no PNG files in this plugin