90% inseri-core

Code Review | Scientific and Interactive Blocks - inseri core

WordPress plugin Scientific and Interactive Blocks - inseri core scored90%from 54 tests.

About plugin

  • Plugin page: inseri-core
  • Plugin version: 0.3.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.4.1
  • WordPress version: 6.3.1
  • First release: Aug 12, 2023
  • Latest release: Nov 28, 2023
  • Number of updates: 14
  • Update frequency: every 8.2 days
  • Top authors: inseriswiss (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /451 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.12MB] [CPU: ▼7.33ms] Passed 4 tests

Analyzing server-side resources used by Scientific and Interactive Blocks - inseri core
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.2039.13 ▼2.45
Dashboard /wp-admin3.43 ▲0.0846.86 ▼13.76
Posts /wp-admin/edit.php3.48 ▲0.1247.36 ▼4.27
Add New Post /wp-admin/post-new.php6.02 ▲0.1386.42 ▼8.82
Media Library /wp-admin/upload.php3.35 ▲0.1237.05 ▲6.79

Server storage [IO: ▲40.59MB] [DB: ▲0.07MB] 67% from 3 tests

Input-output and database impact of this plugin
Just a few items left to fix
  • Total filesystem usage must be limited to 25MB (currently using 40.59MB)
Filesystem: 97 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Scientific and Interactive Blocks - inseri core: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲8914.99 ▲0.2634.68 ▲32.9441.98 ▼10.72
Dashboard /wp-admin2,198 ▲215.62 ▼0.0292.50 ▲1.5039.55 ▲1.51
Posts /wp-admin/edit.php2,103 ▲31.98 ▼0.0540.72 ▲2.1734.72 ▲0.05
Add New Post /wp-admin/post-new.php6,353 ▲4,82758.10 ▲34.462,557.13 ▲1,938.4137.93 ▼16.28
Media Library /wp-admin/upload.php1,400 ▼04.18 ▲0.0098.03 ▲0.2840.22 ▼2.84

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files

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)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: blocks, wordpress blocks, gutenberg blocks, gutenberg, inseri

inseri-core/inseri-core.php Passed 13 tests

The principal PHP file in "Scientific and Interactive Blocks - inseri core" v. 0.3.2 is loaded by WordPress automatically on each request
70 characters long description:
Scientific and Interactive Gutenberg Blocks to facilitate Open Science

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
Good job! No executable or dangerous file extensions detected1,125 lines of code in 92 files:
LanguageFilesBlank linesComment linesLines of code
JSON1400799
CSS4228114
PHP331537101
Markdown126065
JavaScript400046

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.08
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
Namespaces1
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%
Functions8
▷ Named functions562.50%
▷ Anonymous functions337.50%
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
There were not PNG files found in your plugin