84% brillat-savarin-admin

Code Review | Brillat-Savarin - Admin

WordPress plugin Brillat-Savarin - Admin scored84%from 54 tests.

About plugin

  • Plugin page: brillat-savarin-a...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-5.8
  • WordPress version: 6.3.1
  • First release: Dec 2, 2021
  • Latest release: Dec 2, 2021
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: hugoperier (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /255 total downloads

Benchmarks

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
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Brillat-Savarin - Admin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.36 ▲2.10
Dashboard /wp-admin3.31 ▲0.0049.31 ▼5.25
Posts /wp-admin/edit.php3.36 ▲0.0048.77 ▲0.23
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.68 ▼29.88
Media Library /wp-admin/upload.php3.23 ▲0.0035.58 ▼6.13

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Brillat-Savarin - Admin: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,799 ▲5314.47 ▲0.101.75 ▲0.1635.08 ▼5.84
Dashboard /wp-admin2,186 ▼24.84 ▼1.02107.95 ▼4.4039.97 ▼4.01
Posts /wp-admin/edit.php2,069 ▼202.18 ▲0.1639.61 ▲2.1435.32 ▲2.21
Add New Post /wp-admin/post-new.php1,517 ▼323.28 ▲0.09686.20 ▼10.1663.56 ▲8.54
Media Library /wp-admin/upload.php1,371 ▼174.19 ▲0.03100.65 ▼12.9845.06 ▼4.29

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/brillat-savarin-admin/index.php:15

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

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Screenshots: Screenshot #1 (Screen shot are comming) image required
The official readme.txt is a good inspiration

brillat-savarin-admin/index.php 92% from 13 tests

The main PHP script in "Brillat-Savarin - Admin" version 1.0.0 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("brillat-savarin-admin.php" instead of "index.php")

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
Everything looks great! No dangerous files found in this plugin311 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
CSS1270305
PHP1196

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin