84% brilliant-easy-exclude-posts

Code Review | Brilliant Easy Exclude Posts

WordPress plugin Brilliant Easy Exclude Posts scored84%from 54 tests.

About plugin

  • Plugin page: brilliant-easy-ex...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.8.1
  • WordPress version: 6.3.1
  • First release: Mar 3, 2014
  • Latest release: May 21, 2014
  • Number of updates: 3
  • Update frequency: every 26.7 days
  • Top authors: bgentry (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

200+ active /3,752 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼3.78ms] Passed 4 tests

An overview of server-side resources used by Brilliant Easy Exclude Posts
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0345.32 ▲2.78
Dashboard /wp-admin38.45 ▲35.067,211,476.69 ▲7,211,411.04
Posts /wp-admin/edit.php3.49 ▲0.0952.67 ▲2.65
Add New Post /wp-admin/post-new.php5.96 ▲0.0388.35 ▼21.98
Media Library /wp-admin/upload.php3.30 ▲0.0341.20 ▲1.45

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Brilliant Easy Exclude Posts
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.28 ▲0.021.73 ▼0.2644.55 ▲2.52
Dashboard /wp-admin2,186 ▲95.51 ▼0.1682.53 ▼7.6739.37 ▼2.61
Posts /wp-admin/edit.php2,100 ▼02.04 ▲0.0637.67 ▲0.8534.12 ▼4.30
Add New Post /wp-admin/post-new.php6,233 ▲4,70526.24 ▲3.20960.92 ▲248.4569.50 ▲9.36
Media Library /wp-admin/upload.php1,400 ▼04.20 ▲0.07103.31 ▼11.9345.94 ▼2.97

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

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)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions 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 add_action() in wp-content/plugins/brilliant-easy-exclude-posts/brilliant_exclude.php:14

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 on the user side


Plugin configuration 93% 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
1 plugin tags: hidden posts

brilliant-easy-exclude-posts/brilliant_exclude.php 85% from 13 tests

The principal PHP file in "Brilliant Easy Exclude Posts" v. 1.0 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("brilliant-easy-exclude-posts.php" instead of "brilliant_exclude.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 171 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin103 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.40
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 functions10100.00%
▷ Anonymous functions00.00%
▷ 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 are no PNG files in this plugin