84% surbma-divi-project-shortcodes

Code Review | Surbma | Divi Project Shortcodes

WordPress plugin Surbma | Divi Project Shortcodes scored84%from 54 tests.

About plugin

  • Plugin page: surbma-divi-proje...
  • Plugin version: 2.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.2
  • WordPress version: 6.3.1
  • First release: Apr 20, 2015
  • Latest release: Apr 8, 2023
  • Number of updates: 14
  • Update frequency: every 207.8 days
  • Top authors: Surbma (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

500+ active /8,845 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.72ms] Passed 4 tests

Analyzing server-side resources used by Surbma | Divi Project Shortcodes
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.94 ▲1.38
Dashboard /wp-admin3.31 ▲0.0044.06 ▼4.15
Posts /wp-admin/edit.php3.36 ▲0.0044.21 ▼3.99
Add New Post /wp-admin/post-new.php5.89 ▲0.0078.91 ▼16.13
Media Library /wp-admin/upload.php3.23 ▲0.0034.89 ▲3.03

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Surbma | Divi Project Shortcodes
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.31 ▼0.211.85 ▲0.2545.61 ▲7.01
Dashboard /wp-admin2,195 ▲175.47 ▼0.1380.88 ▼15.4137.15 ▼7.10
Posts /wp-admin/edit.php2,100 ▲32.03 ▲0.0238.71 ▲1.5834.61 ▲0.48
Add New Post /wp-admin/post-new.php1,528 ▼022.93 ▼0.05650.78 ▲5.6759.57 ▲8.90
Media Library /wp-admin/upload.php1,397 ▼34.14 ▼0.0795.93 ▼11.3740.36 ▼7.52

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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 items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/surbma-divi-project-shortcodes/surbma-divi-project-shortcodes.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 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
8 plugin tags: project tag, project category, elegant themes, shortcode, divi theme...

surbma-divi-project-shortcodes/surbma-divi-project-shortcodes.php Passed 13 tests

The entry point to "Surbma | Divi Project Shortcodes" version 2.1 is a PHP file that has certain tags in its header comment area
74 characters long description:
Shortcodes to display Divi's Project elements, like category and tag list.

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 plugin92 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1131449
PO File1102440
Markdown1103

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.08
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin