84% vi-include-post-by

Code Review | VI: Include Post By

WordPress plugin VI: Include Post By scored84%from 54 tests.

About plugin

  • Plugin page: vi-include-post-by
  • Plugin version: 0.4.200706
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.4
  • WordPress version: 6.3.1
  • First release: Apr 7, 2020
  • Latest release: Jul 27, 2020
  • Number of updates: 16
  • Update frequency: every 7.0 days
  • Top authors: Knighthawk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /500 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼5.01ms] Passed 4 tests

A check of server-side resources used by VI: Include Post By
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0940.17 ▼1.94
Dashboard /wp-admin3.39 ▲0.0552.80 ▼12.78
Posts /wp-admin/edit.php3.44 ▲0.0954.30 ▲2.62
Add New Post /wp-admin/post-new.php5.97 ▲0.0999.99 ▼0.99
Media Library /wp-admin/upload.php3.32 ▲0.0933.50 ▼4.34

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

VI: Include Post By: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,897 ▲15113.41 ▼0.957.98 ▲6.2042.80 ▼0.74
Dashboard /wp-admin2,198 ▲215.57 ▼0.0892.96 ▼0.2142.99 ▲3.83
Posts /wp-admin/edit.php2,100 ▼01.95 ▼0.0938.86 ▲3.5336.70 ▼1.37
Add New Post /wp-admin/post-new.php1,526 ▼1023.16 ▲4.96618.69 ▼33.6656.76 ▼10.88
Media Library /wp-admin/upload.php1,403 ▲64.21 ▼0.0095.01 ▼11.4442.60 ▼0.78

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 did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/vi-include-post-by/vi_include_post_by.php:920

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: vars, include, shortcode, options, params...

vi-include-post-by/vi_include_post_by.php 92% from 13 tests

"VI: Include Post By" version 0.4.200706's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("vi-include-post-by.php" instead of "vi_include_post_by.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin706 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP2126246555
Markdown1300103
CSS1113438
JavaScript161410

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity116.00
▷ Minimum class complexity116.00
▷ Maximum class complexity116.00
Average method complexity7.76
▷ Minimum method complexity1.00
▷ Maximum method complexity51.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods17
▷ Static methods17100.00%
▷ Public methods317.65%
▷ Protected methods00.00%
▷ Private methods1482.35%
Functions0
▷ Named functions00.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
1 compressed PNG file occupies 0.01MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
default-image.png6.14KB6.12KB0.37%