84% feature-box

Code Review | Gutenberg Blocks - Feature Box

WordPress plugin Gutenberg Blocks - Feature Box scored84%from 54 tests.

About plugin

  • Plugin page: feature-box
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-5.7.2
  • WordPress version: 6.3.1
  • First release: Jun 3, 2021
  • Latest release: Jun 16, 2021
  • Number of updates: 4
  • Update frequency: every 10.5 days
  • Top authors: sumaiyasiddika (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /587 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Gutenberg Blocks - Feature Box
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.94 ▼5.16
Dashboard /wp-admin3.31 ▲0.0146.71 ▲3.31
Posts /wp-admin/edit.php3.36 ▲0.0142.47 ▼8.62
Add New Post /wp-admin/post-new.php5.90 ▲0.0179.71 ▼11.72
Media Library /wp-admin/upload.php3.24 ▲0.0133.99 ▲1.05

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Gutenberg Blocks - Feature Box
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲3213.30 ▼1.311.54 ▼0.5038.12 ▼5.24
Dashboard /wp-admin2,203 ▲185.83 ▲0.76101.36 ▼20.8938.99 ▼8.28
Posts /wp-admin/edit.php2,089 ▼01.97 ▼0.0433.50 ▼9.8134.52 ▼6.00
Add New Post /wp-admin/post-new.php6,354 ▲4,83527.51 ▲4.46920.28 ▲322.1161.32 ▲12.30
Media Library /wp-admin/upload.php1,385 ▼34.28 ▲0.0897.62 ▼0.8644.50 ▲2.40

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/feature-box/feature-box.php:23

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: featured box, gutenberg featuredbox, featured image, featured block, featurebox block...

feature-box/feature-box.php Passed 13 tests

This is the main PHP file of "Gutenberg Blocks - Feature Box" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
41 characters long description:
Highlight a image with your key features.

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 detected49,659 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
JSON30049,074
JavaScript84520495
Sass213082
PHP21176
CSS2002

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin