84% kblog-include

Code Review | Kblog Include

WordPress plugin Kblog Include scored84%from 54 tests.

About plugin

  • Plugin page: kblog-include
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.9
  • WordPress version: 6.3.1
  • First release: Oct 8, 2013
  • Latest release: Apr 23, 2014
  • Number of updates: 6
  • Update frequency: every 35.2 days
  • Top authors: philliplord (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,044 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

Server-side resources used by Kblog Include
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.13 ▼2.92
Dashboard /wp-admin3.31 ▲0.0145.05 ▼3.85
Posts /wp-admin/edit.php3.36 ▲0.0047.87 ▼6.37
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.69 ▼1.57
Media Library /wp-admin/upload.php3.23 ▲0.0035.95 ▲3.49

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Kblog Include
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.40 ▲0.031.75 ▼0.1141.94 ▼0.90
Dashboard /wp-admin2,206 ▲185.89 ▲0.98110.45 ▼0.3943.51 ▲1.03
Posts /wp-admin/edit.php2,086 ▼61.97 ▼0.0340.75 ▼0.9135.29 ▲0.41
Add New Post /wp-admin/post-new.php1,514 ▼317.80 ▲0.16598.27 ▼5.9755.71 ▲2.49
Media Library /wp-admin/upload.php1,391 ▲64.16 ▲0.02101.57 ▲3.2443.32 ▼1.14

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 fix the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function kblog_include_add_oai_server() in wp-content/plugins/kblog-include/kblog-server.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/kblog-include/kblog-include.php:35

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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
4 plugin tags: science, scholar, res-comms, academic

kblog-include/kblog-include.php Passed 13 tests

"Kblog Include" version 0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
27 characters long description:
Include from various places

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 plugin359 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP57544359

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity7.20
▷ Minimum class complexity1.00
▷ Maximum class complexity15.00
Average method complexity2.63
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.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
There are no PNG files in this plugin