84% q-shortcodes

Code Review | q-Shortcodes

WordPress plugin q-Shortcodes scored84%from 54 tests.

About plugin

  • Plugin page: q-shortcodes
  • Plugin version: 1.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.2
  • WordPress version: 6.3.1
  • First release: Oct 21, 2017
  • Latest release: Sep 9, 2019
  • Number of updates: 11
  • Update frequency: every 62.6 days
  • Top authors: keksus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /654 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.58ms] Passed 4 tests

An overview of server-side resources used by q-Shortcodes
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0935.56 ▼1.15
Dashboard /wp-admin3.34 ▲0.0045.20 ▼15.34
Posts /wp-admin/edit.php3.39 ▲0.0446.89 ▲1.23
Add New Post /wp-admin/post-new.php5.93 ▲0.0484.98 ▼7.03
Media Library /wp-admin/upload.php3.27 ▲0.0433.25 ▲1.19

Server storage [IO: ▲1.82MB] [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: 22 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by q-Shortcodes
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲9214.47 ▼0.092.15 ▲0.6239.21 ▼0.29
Dashboard /wp-admin2,208 ▲255.84 ▲0.8596.97 ▼10.3241.51 ▼3.94
Posts /wp-admin/edit.php2,091 ▲52.04 ▼0.0138.96 ▲3.8935.82 ▲3.23
Add New Post /wp-admin/post-new.php1,530 ▲823.20 ▼0.09677.72 ▲13.5451.88 ▼0.97
Media Library /wp-admin/upload.php1,390 ▼14.17 ▼0.0495.51 ▼5.8743.14 ▼4.07

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/q-shortcodes/shortcodes.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 97% 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
Attributes that need to be fixed:
  • Screenshots: Please add descriptions for these screenshots #1, #2 in q-shortcodes/assets to your readme.txt
You can look at the official readme.txt

q-shortcodes/q-shortcodes.php Passed 13 tests

"q-Shortcodes" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
110 characters long description:
This plugin contain shortcodes: buttons, tabs, icons, toggles, services, divider, clear, columns( 12 col grid)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin5,767 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
SVG2034,898
PHP24138375
JavaScript31019281
CSS4540190
Markdown110023

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.06
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%
Functions33
▷ Named functions33100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/q.png1.31KB0.28KB▼ 78.27%