83% personal-content-recommendations

Code Review | BrightInfo

WordPress plugin BrightInfo scored 83% from 54 tests.

About plugin

  • Plugin page: personal-content-...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.2
  • WordPress version: 6.3.1
  • First release: May 3, 2014
  • Latest release: May 2, 2015
  • Number of updates: 25
  • Update frequency: every 14.7 days
  • Top authors: BrightInfo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,268 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.11MB] [CPU: ▼3.63ms] Passed 4 tests

This is a short check of server-side resources used by BrightInfo
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1143.59 ▼4.28
Dashboard /wp-admin3.41 ▲0.1151.99 ▼1.98
Posts /wp-admin/edit.php3.53 ▲0.1758.72 ▲3.63
Add New Post /wp-admin/post-new.php6.00 ▲0.1190.99 ▼10.45
Media Library /wp-admin/upload.php3.34 ▲0.1137.09 ▲2.18
BrightInfo /wp-admin/options-general.php?page=Brightinfo_PluginSettings3.3144.90

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 8 new options
New WordPress options
widget_theysaidso_widget
Brightinfo_Plugin__installed
widget_recent-posts
Brightinfo_Plugin__version
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for BrightInfo
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲413.22 ▼1.434.52 ▲2.6542.02 ▼1.07
Dashboard /wp-admin2,213 ▲105.89 ▲0.11106.82 ▲9.3040.01 ▼0.77
Posts /wp-admin/edit.php2,093 ▲42.00 ▼0.0136.61 ▼3.4134.44 ▼0.02
Add New Post /wp-admin/post-new.php1,537 ▲423.29 ▲0.04774.99 ▲102.7058.19 ▼1.85
Media Library /wp-admin/upload.php1,392 ▲74.18 ▼0.0296.88 ▼5.4644.78 ▲1.26
BrightInfo /wp-admin/options-general.php?page=Brightinfo_PluginSettings9412.0527.4529.55

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 8 options
    • widget_recent-comments
    • Brightinfo_Plugin__version
    • widget_recent-posts
    • theysaidso_admin_options
    • Brightinfo_Plugin__installed
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

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 server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/personal-content-recommendations/brightinfo.php:67

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 83% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Tags: You are using too many tags: 14 tag instead of maximum 10
  • Plugin Name: Please specify the plugin name on the first line ( === personal-content-recommendations === )
You can look at the official readme.txt

personal-content-recommendations/brightinfo.php 77% from 13 tests

The main PHP file in "BrightInfo" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("personal-content-recommendations.php" instead of "brightinfo.php")
  • Description: The plugin description must be longer than 10 characters (currently 0 characters long)

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
No dangerous file extensions were detected573 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP8179557542
JavaScript16231

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity10.17
▷ Minimum class complexity1.00
▷ Maximum class complexity50.00
Average method complexity1.77
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes233.33%
▷ Concrete classes466.67%
▷ Final classes00.00%
Methods73
▷ Static methods00.00%
▷ Public methods4561.64%
▷ Protected methods2838.36%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected