84% schema-shortcode

Code Review | Schema Shortcode

WordPress plugin Schema Shortcode scored84%from 54 tests.

About plugin

  • Plugin page: schema-shortcode
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0
  • WordPress version: 6.3.1
  • First release: Nov 26, 2015
  • Latest release: Nov 26, 2015
  • Number of updates: 6
  • Update frequency: every 69.8 days
  • Top authors: jeric_izon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,053 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.48ms] Passed 4 tests

Server-side resources used by Schema Shortcode
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0137.73 ▼6.60
Dashboard /wp-admin3.32 ▲0.0143.43 ▼2.15
Posts /wp-admin/edit.php3.37 ▲0.0149.29 ▲1.20
Add New Post /wp-admin/post-new.php5.90 ▲0.0197.75 ▲1.48
Media Library /wp-admin/upload.php3.24 ▲0.0135.00 ▼2.37

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

Analyzing filesystem and database footprints 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
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Schema Shortcode
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5613.19 ▼1.061.70 ▼0.3044.52 ▲5.40
Dashboard /wp-admin2,203 ▲155.83 ▲0.01103.28 ▼3.0441.35 ▼2.87
Posts /wp-admin/edit.php2,092 ▲32.01 ▼0.0537.52 ▼4.1035.14 ▼0.17
Add New Post /wp-admin/post-new.php1,542 ▲2318.47 ▼4.79629.29 ▼65.9957.91 ▲4.77
Media Library /wp-admin/upload.php1,382 ▼64.24 ▼0.0599.62 ▼10.2041.01 ▼10.27

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

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 no errors were found, this is by no means 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
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/schema-shortcode/schema-shortcode.php:29

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% 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 your attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === schema-shortcode === )
  • Screenshots: These screenshots do not have images: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from), #2 (This is the second screen shot)
Please take inspiration from this readme.txt

schema-shortcode/schema-shortcode.php Passed 13 tests

The entry point to "Schema Shortcode" version 1.0 is a PHP file that has certain tags in its header comment area
45 characters long description:
Create a shortcode for inputting schema tags.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected122 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript15064
PHP182655
CSS1003

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions8
▷ Named functions8100.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
PNG images were not found in this plugin