84% better-plugin-recommendations

Code Review | Better Plugin Recommendations

WordPress plugin Better Plugin Recommendations scored 84% from 54 tests.

About plugin

  • Plugin page: better-plugin-rec...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.7.3
  • WordPress version: 6.3.1
  • First release: Apr 20, 2017
  • Latest release: Apr 20, 2017
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: nickhamze (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 1,514 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▲1.55ms] Passed 4 tests

A check of server-side resources used by Better Plugin Recommendations
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0152.89 ▲0.26
Dashboard /wp-admin3.31 ▲0.0147.81 ▼11.69
Posts /wp-admin/edit.php3.36 ▲0.0170.80 ▲13.65
Add New Post /wp-admin/post-new.php5.89 ▲0.01134.72 ▲21.72
Media Library /wp-admin/upload.php3.23 ▲0.0146.74 ▲3.98

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Better Plugin Recommendations
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲10414.35 ▼0.0418.71 ▲16.59236.19 ▲28.17
Dashboard /wp-admin2,200 ▼44.87 ▼1.09228.30 ▲22.49141.13 ▲46.86
Posts /wp-admin/edit.php2,092 ▲32.06 ▲0.03103.60 ▲31.43119.26 ▼1.29
Add New Post /wp-admin/post-new.php1,513 ▲6323.82 ▲2.15921.21 ▼18.06118.29 ▼27.90
Media Library /wp-admin/upload.php1,388 ▲124.20 ▲0.08186.21 ▼11.38103.07 ▼3.36

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 were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/better-plugin-recommendations/better-plugin-recommendations.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
1 plugin tags: plugins

better-plugin-recommendations/better-plugin-recommendations.php 92% from 13 tests

The primary PHP file in "Better Plugin Recommendations" version 1.0.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected146 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code

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.55
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions480.00%
▷ Anonymous functions120.00%
▷ Global constants1100.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
No PNG images were found in this plugin