84% heganoo-shortcode

Code Review | Heganoo Shortcode

WordPress plugin Heganoo Shortcode scored84%from 54 tests.

About plugin

  • Plugin page: heganoo-shortcode
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.0
  • WordPress version: 6.3.1
  • First release: Oct 2, 2014
  • Latest release: Oct 6, 2014
  • Number of updates: 16
  • Update frequency: every 0.3 days
  • Top authors: konforti (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /623 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.01ms] Passed 4 tests

Server-side resources used by Heganoo Shortcode
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.03 ▼0.36
Dashboard /wp-admin3.31 ▲0.0147.55 ▼2.39
Posts /wp-admin/edit.php3.36 ▲0.0152.75 ▲1.05
Add New Post /wp-admin/post-new.php5.89 ▲0.0189.62 ▼11.42
Media Library /wp-admin/upload.php3.23 ▲0.0135.27 ▼1.86

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Heganoo Shortcode
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.25 ▼0.361.69 ▼0.2746.03 ▲2.28
Dashboard /wp-admin2,195 ▲215.61 ▼0.0693.86 ▼33.4237.98 ▼20.45
Posts /wp-admin/edit.php2,100 ▲31.98 ▲0.0240.40 ▲1.4938.18 ▲1.26
Add New Post /wp-admin/post-new.php1,528 ▲223.06 ▼0.39690.85 ▲63.1551.31 ▼8.88
Media Library /wp-admin/upload.php1,400 ▼34.18 ▼0.22105.11 ▼0.7742.09 ▼4.13

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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 trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/heganoo-shortcode/heganoo-shortcode.php:59

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: shortcode, heganoo, maps

heganoo-shortcode/heganoo-shortcode.php Passed 13 tests

The main PHP file in "Heganoo Shortcode" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
40 characters long description:
Enables shortcode to embed Heganoo maps.

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
Good job! No executable or dangerous file extensions detected26 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1102326

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin