84% weaver-themes-shortcode-compatibility

Code Review | Weaver Themes Shortcode Compatibility

WordPress plugin Weaver Themes Shortcode Compatibility scored84%from 54 tests.

About plugin

  • Plugin page: weaver-themes-sho...
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.9
  • WordPress version: 6.3.1
  • First release: Feb 12, 2015
  • Latest release: May 5, 2018
  • Number of updates: 5
  • Update frequency: every 235.6 days
  • Top authors: wpweaver (100%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active /5,840 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼1.69ms] Passed 4 tests

An overview of server-side resources used by Weaver Themes Shortcode Compatibility
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.20 ▲3.36
Dashboard /wp-admin3.32 ▲0.0241.73 ▼7.36
Posts /wp-admin/edit.php3.37 ▲0.0246.08 ▼0.02
Add New Post /wp-admin/post-new.php5.90 ▲0.0289.50 ▼1.87
Media Library /wp-admin/upload.php3.24 ▲0.0237.03 ▲2.48

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Weaver Themes Shortcode Compatibility
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,886 ▲12513.32 ▼1.309.98 ▲8.2741.65 ▼0.00
Dashboard /wp-admin2,192 ▲175.63 ▼0.0980.53 ▼18.7639.12 ▼2.67
Posts /wp-admin/edit.php2,097 ▼02.04 ▲0.0939.92 ▲5.3235.37 ▼2.19
Add New Post /wp-admin/post-new.php1,535 ▲618.52 ▼4.52655.30 ▼17.9964.72 ▲4.41
Media Library /wp-admin/upload.php1,400 ▼04.20 ▲0.0699.10 ▼15.7442.29 ▼6.54

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_theme() in wp-content/plugins/weaver-themes-shortcode-compatibility/weaver-themes-compatibility.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/weaver-themes-shortcode-compatibility/includes/shortcodes.php:82

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: subthemes, settings, weaver theme, save

weaver-themes-shortcode-compatibility/weaver-themes-compatibility.php 85% from 13 tests

The entry point to "Weaver Themes Shortcode Compatibility" version 1.0.4 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("weaver-themes-shortcode-compatibility.php" instead of "weaver-themes-compatibility.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 166 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin1,252 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP92931401,107
JavaScript2141673
CSS212672

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
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%
Functions48
▷ Named functions48100.00%
▷ Anonymous functions00.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
No PNG files were detected