84% content-shortcodes

Code Review | Content Shortcodes

WordPress plugin Content Shortcodes scored84%from 54 tests.

About plugin

  • Plugin page: content-shortcodes
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.9.1
  • WordPress version: 6.3.1
  • First release: Feb 10, 2014
  • Latest release: Jun 7, 2014
  • Number of updates: 4
  • Update frequency: every 29.2 days
  • Top authors: binary-organic (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

40+ active /1,685 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
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼8.77ms] Passed 4 tests

An overview of server-side resources used by Content Shortcodes
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0536.47 ▼1.25
Dashboard /wp-admin3.35 ▲0.0142.87 ▼17.30
Posts /wp-admin/edit.php3.40 ▲0.0545.74 ▼3.82
Add New Post /wp-admin/post-new.php5.93 ▲0.0589.89 ▼10.22
Media Library /wp-admin/upload.php3.27 ▲0.0432.03 ▼3.75
All Content Shortcodes /wp-admin/edit.php?post_type=content_shortcode3.3234.24
Categories /wp-admin/edit-tags.php?taxonomy=shortcode_cat&post_type=content_shortcode3.2633.23
Add New /wp-admin/post-new.php?post_type=content_shortcode3.3947.96

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Content Shortcodes
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲8814.47 ▲0.241.79 ▲0.0639.48 ▼2.19
Dashboard /wp-admin2,240 ▲555.88 ▼0.08106.01 ▲6.4440.79 ▼4.17
Posts /wp-admin/edit.php2,130 ▲412.00 ▼0.0440.19 ▲1.3936.65 ▲0.97
Add New Post /wp-admin/post-new.php1,559 ▲4523.11 ▲5.59591.33 ▼87.8258.22 ▲5.96
Media Library /wp-admin/upload.php1,419 ▲314.24 ▲0.0195.54 ▼15.1843.91 ▼3.83
All Content Shortcodes /wp-admin/edit.php?post_type=content_shortcode1,1171.9431.0930.24
Categories /wp-admin/edit-tags.php?taxonomy=shortcode_cat&post_type=content_shortcode1,2622.1426.8126.33
Add New /wp-admin/post-new.php?post_type=content_shortcode2,2857.67169.3462.66

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/content-shortcodes/content-shortcodes.php:35

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: widgets, repeatable, content, shortcodes, modular

content-shortcodes/content-shortcodes.php 92% from 13 tests

Analyzing the main PHP file in "Content Shortcodes" version 1.0
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 194 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin75 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1432575

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
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%
Functions6
▷ Named functions6100.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
There were not PNG files found in your plugin