90% dig-bloginfo-shortcode

Code Review | Dig Bloginfo Shortcode

WordPress plugin Dig Bloginfo Shortcode scored90%from 54 tests.

About plugin

  • Plugin page: dig-bloginfo-shor...
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9
  • WordPress version: 6.3.1
  • First release: Nov 8, 2016
  • Latest release: Nov 10, 2017
  • Number of updates: 15
  • Update frequency: every 24.3 days
  • Top authors: arroba (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,173 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
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Dig Bloginfo Shortcode
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.93 ▲1.82
Dashboard /wp-admin3.32 ▼0.0346.85 ▼11.06
Posts /wp-admin/edit.php3.37 ▲0.0145.97 ▼5.25
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.37 ▼16.05
Media Library /wp-admin/upload.php3.24 ▲0.0131.64 ▼1.95
Dig Bloginfo Shortcode /wp-admin/tools.php?page=dig-bloginfo-shortcode-page3.2028.83

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Dig Bloginfo Shortcode
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.74 ▲0.281.77 ▲0.0344.42 ▼1.11
Dashboard /wp-admin2,210 ▲194.85 ▼1.0098.62 ▼1.4338.38 ▼4.34
Posts /wp-admin/edit.php2,093 ▲41.96 ▼0.0541.08 ▼0.3435.79 ▼3.28
Add New Post /wp-admin/post-new.php1,536 ▲723.17 ▲4.88650.47 ▲36.4569.58 ▲16.22
Media Library /wp-admin/upload.php1,395 ▲44.18 ▼0.0693.11 ▼13.3643.62 ▲0.78
Dig Bloginfo Shortcode /wp-admin/tools.php?page=dig-bloginfo-shortcode-page8552.0123.1226.17

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: bloginfo, shortcode, name, key, description...

dig-bloginfo-shortcode/dig-bloginfo-shortcode.php Passed 13 tests

Analyzing the main PHP file in "Dig Bloginfo Shortcode" version 1.0.4
79 characters long description:
Fetch the blog info data and use it through a shortcode in html or post editor.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected71 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1202371

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions4
▷ Named functions4100.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
No PNG images were found in this plugin