72% cfp-dev-shortcodes

Code Review | CFP.DEV shortcodes

WordPress plugin CFP.DEV shortcodes scored72%from 54 tests.

About plugin

  • Plugin page: cfp-dev-shortcodes
  • Plugin version: 3.2.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.1.0
  • WordPress version: 6.3.1
  • First release: Aug 3, 2019
  • Latest release: Nov 14, 2023
  • Number of updates: 104
  • Update frequency: every 15.1 days
  • Top authors: sjadevoxx (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,380 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
Installer ran successfully

Server metrics [RAM: ▲0.34MB] [CPU: ▼0.68ms] Passed 4 tests

Server-side resources used by CFP.DEV shortcodes
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.82 ▲0.3550.22 ▲7.92
Dashboard /wp-admin3.63 ▲0.3351.30 ▲1.24
Posts /wp-admin/edit.php3.75 ▲0.3955.95 ▲9.74
Add New Post /wp-admin/post-new.php6.24 ▲0.3488.37 ▼17.91
Media Library /wp-admin/upload.php3.56 ▲0.3240.60 ▲6.04
CFP.DEV /wp-admin/options-general.php?page=my-unique-identifier3.5136.82

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 76 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for CFP.DEV shortcodes
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,969 ▲20716.27 ▲1.6314.30 ▲12.6050.23 ▲4.85
Dashboard /wp-admin2,222 ▲516.07 ▲0.43101.98 ▲11.1639.99 ▼3.07
Posts /wp-admin/edit.php2,127 ▲272.99 ▲1.0343.95 ▲10.5434.14 ▼1.10
Add New Post /wp-admin/post-new.php1,535 ▲923.21 ▲0.01691.37 ▲84.1551.26 ▼9.56
Media Library /wp-admin/upload.php1,430 ▲305.62 ▲1.42108.28 ▲0.2042.61 ▼9.41
CFP.DEV /wp-admin/options-general.php?page=my-unique-identifier1,0192.7635.0227.81

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

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

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=my-unique-identifier
    • > Notice in wp-content/plugins/cfp-dev-shortcodes/cfp-dev-wordpress-shortcodes.php+553
    Trying to access array offset on value of type null
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=my-unique-identifier
    • > Notice in wp-content/plugins/cfp-dev-shortcodes/cfp-dev-wordpress-shortcodes.php+562
    Undefined index:

SRP 0% 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
The following issues need your attention
  • 10× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/cfp-dev-shortcodes/shortcode/template/schedule/general.php
    • > /wp-content/plugins/cfp-dev-shortcodes/shortcode/template/general.php
    • > /wp-content/plugins/cfp-dev-shortcodes/shortcode/include/top.php
    • > /wp-content/plugins/cfp-dev-shortcodes/shortcode/include/bottom.php
    • > /wp-content/plugins/cfp-dev-shortcodes/shortcode/template/header.php
    • > /wp-content/plugins/cfp-dev-shortcodes/shortcode/template/schedule/personal.php
    • > /wp-content/plugins/cfp-dev-shortcodes/shortcode/template/personal.php
    • > /wp-content/plugins/cfp-dev-shortcodes/shortcode/template/logo.php
    • > /wp-content/plugins/cfp-dev-shortcodes/shortcode/template/search.php
    • > /wp-content/plugins/cfp-dev-shortcodes/shortcode/template/footer.php
  • 4095× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: time_unit in wp-content/plugins/cfp-dev-shortcodes/shortcode/template/personal.php on line 35
    • > PHP Notice
      Undefined variable: time_day in wp-content/plugins/cfp-dev-shortcodes/shortcode/template/personal.php on line 36
    • > PHP Notice
      Undefined variable: time_unit in wp-content/plugins/cfp-dev-shortcodes/shortcode/template/personal.php on line 35
    • > PHP Notice
      Undefined variable: time_unit in wp-content/plugins/cfp-dev-shortcodes/shortcode/template/personal.php on line 35
    • > PHP Notice
      Undefined variable: time_unit in wp-content/plugins/cfp-dev-shortcodes/shortcode/template/personal.php on line 35
    • > PHP Notice
      Undefined variable: time_day in wp-content/plugins/cfp-dev-shortcodes/shortcode/template/personal.php on line 36
    • > PHP Notice
      Undefined variable: time_day in wp-content/plugins/cfp-dev-shortcodes/shortcode/template/personal.php on line 36
    • > PHP Notice
      Undefined variable: time_day in wp-content/plugins/cfp-dev-shortcodes/shortcode/template/personal.php on line 36
    • > PHP Notice
      Undefined variable: time_day in wp-content/plugins/cfp-dev-shortcodes/shortcode/template/personal.php on line 36
    • > PHP Notice
      Undefined variable: time_day in wp-content/plugins/cfp-dev-shortcodes/shortcode/template/personal.php on line 36

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention: The official readme.txt might help

cfp-dev-shortcodes/cfp-dev-wordpress-shortcodes.php 85% from 13 tests

The entry point to "CFP.DEV shortcodes" version 3.2.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 142 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("cfp-dev-shortcodes.php" instead of "cfp-dev-wordpress-shortcodes.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected23,103 lines of code in 48 files:
LanguageFilesBlank linesComment linesLines of code
CSS64,3021,51220,331
PHP204514512,284
JavaScript66837397
Markdown12059
SVG150132

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.16
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%
Functions93
▷ Named functions6670.97%
▷ Anonymous functions2729.03%
Constants18
▷ Global constants18100.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
16 PNG files occupy 0.26MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
shortcode/gfx/track/mind_the_geek.png20.88KB9.03KB▼ 56.74%
shortcode/gfx/track/people_culture.png27.91KB12.78KB▼ 54.22%
images/ui-icons_777777_256x240.png3.19KB3.49KB0.00%
shortcode/gfx/track/java.png17.90KB10.95KB▼ 38.80%
shortcode/gfx/track/data_ai.png30.05KB12.36KB▼ 58.88%