74% sbol-validator

Code Review | SBOL Validator

WordPress plugin SBOL Validator scored74%from 54 tests.

About plugin

  • Plugin page: sbol-validator
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 1.0-4.4
  • WordPress version: 6.3.1
  • First release: Jan 6, 2016
  • Latest release: Jan 7, 2016
  • Number of updates: 21
  • Update frequency: every 0.1 days
  • Top authors: 16zzundel5 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /494 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by SBOL Validator
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0133.04 ▼4.91
Dashboard /wp-admin3.32 ▼0.0243.12 ▼20.63
Posts /wp-admin/edit.php3.37 ▲0.0148.04 ▲4.77
Add New Post /wp-admin/post-new.php5.90 ▲0.0181.65 ▼30.18
Media Library /wp-admin/upload.php3.24 ▲0.0135.78 ▼0.89

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by SBOL Validator
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.30 ▼1.091.56 ▼0.4237.52 ▼6.93
Dashboard /wp-admin2,206 ▲214.87 ▼0.03113.77 ▼4.0541.41 ▼3.96
Posts /wp-admin/edit.php2,092 ▲32.06 ▲0.0638.90 ▼2.2036.85 ▲0.59
Add New Post /wp-admin/post-new.php1,541 ▲623.39 ▼0.01672.95 ▲6.0850.97 ▼6.16
Media Library /wp-admin/upload.php1,388 ▲64.17 ▼0.0393.70 ▼5.1941.55 ▲0.43

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • 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 shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/sbol-validator/sbol-validator.php:99

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: validator, sbol, validation, biology

sbol-validator/sbol-validator.php 92% from 13 tests

"SBOL Validator" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Description: A good plugin description is longer than 10 characters (currently 9 characters long)

Code Analysis 5% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Please fix the following items
  • You should never include executable (binary) or otherwise dangerous files in your plugin
    • .jar - Java Archive in Firefox, IE, Chrome, Safari
      • wp-content/plugins/sbol-validator/libSBOLj-2.0.0-withDependencies.jar
69 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1112069

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected