88% wp-blogfoster-insights

Code Review | blogfoster Insights

WordPress plugin blogfoster Insights scored 88% from 54 tests.

About plugin

  • Plugin page: wp-blogfoster-ins...
  • Plugin version: 1.0.7d...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.1
  • WordPress version: 5.9.2
  • First release: Jun 1, 2016
  • Latest release: Feb 12, 2020
  • Number of updates: 19
  • Update frequency: every 71.6 days
  • Top authors: alexspri (100%)

Code review

54 tests

User reviews

1 review

Install metrics

700+ active / 15,578 total downloads

Benchmarks

Plugin footprint Passed 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.01MB] [CPU: ▼293.44ms] Passed 4 tests

Analyzing server-side resources used by blogfoster Insights
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0561.32 ▼0.14
Dashboard /wp-admin3.44 ▲0.0334.94 ▲2.16
Posts /wp-admin/edit.php3.66 ▲0.0338.56 ▲0.20
Add New Post /wp-admin/post-new.php6.91 ▼0.06101.23 ▼1,175.12
Media Library /wp-admin/upload.php3.32 ▲0.0225.64 ▲1.30
blogfoster Insights - DEPRECATED, should be UNINSTALLED! /wp-admin/options-general.php?page=wp-blogfoster-insights3.3122.99

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 24 new files
Database: no new tables, 1 new option
New WordPress options
wp-blogfoster-insights-options

Browser metrics Passed 4 tests

A check of browser resources used by blogfoster Insights
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,805 ▲5115.81 ▼0.166.22 ▲0.012.80 ▼0.19
Dashboard /wp-admin2,898 ▲446.00 ▼0.17148.02 ▼4.36169.51 ▼18.83
Posts /wp-admin/edit.php2,697 ▲93.24 ▲0.0064.91 ▲2.59211.73 ▲65.30
Add New Post /wp-admin/post-new.php1,718 ▲5821.47 ▼1.34459.35 ▲36.89170.88 ▲7.74
Media Library /wp-admin/upload.php1,708 ▲105.51 ▼0.05127.53 ▼12.65208.79 ▼37.14
blogfoster Insights - DEPRECATED, should be UNINSTALLED! /wp-admin/options-general.php?page=wp-blogfoster-insights1,0732.6160.94152.04

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wp-blogfoster-insights/public/partials/wp-blogfoster-insights-public-display.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/wp-blogfoster-insights/admin/partials/wp-blogfoster-insights-admin-display.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: widget, blogfoster, insights, analytics, snippet

wp-blogfoster-insights/wp-blogfoster-insights.php 92% from 13 tests

Analyzing the main PHP file in "blogfoster Insights" version 1.0.7d...
It is important to fix the following:
  • Version: The version number should only use digits and periods (ex. "1.0.3" instead of "1.0.7d...")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected541 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP13169701446
CSS251946
PO File191146
JavaScript12273

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity6.86
▷ Minimum class complexity1.00
▷ Maximum class complexity35.00
Average method complexity2.14
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods36
▷ Static methods25.56%
▷ Public methods3186.11%
▷ Protected methods00.00%
▷ Private methods513.89%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin