90% eb-openverse-block

Code Review | EB Openverse Block

WordPress plugin EB Openverse Block scored90%from 54 tests.

About plugin

  • Plugin page: eb-openverse-block
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.0
  • WordPress version: 6.3.1
  • First release: Nov 17, 2022
  • Latest release: Nov 23, 2022
  • Number of updates: 3
  • Update frequency: every 2.0 days
  • Top authors: wpdevteam (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /973 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.18MB] [CPU: ▼5.91ms] Passed 4 tests

An overview of server-side resources used by EB Openverse Block
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.2047.13 ▲4.51
Dashboard /wp-admin3.49 ▲0.1452.19 ▼11.56
Posts /wp-admin/edit.php3.60 ▲0.2446.19 ▼4.63
Add New Post /wp-admin/post-new.php6.10 ▲0.2187.19 ▼9.31
Media Library /wp-admin/upload.php3.41 ▲0.1838.81 ▲1.88

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

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

Browser metrics Passed 4 tests

Checking browser requirements for EB Openverse Block
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.36 ▼0.011.78 ▲0.1142.79 ▼0.59
Dashboard /wp-admin2,192 ▲125.50 ▼0.1498.73 ▲12.1650.63 ▲11.54
Posts /wp-admin/edit.php2,100 ▼32.01 ▲0.0536.94 ▼6.8131.32 ▼4.48
Add New Post /wp-admin/post-new.php1,666 ▲14024.28 ▲1.32671.37 ▼40.6939.10 ▼24.35
Media Library /wp-admin/upload.php1,403 ▲34.22 ▲0.04105.11 ▼21.0146.69 ▼1.21

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 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
9 plugin tags: eb open verse, stock photos, photos, free images, openverse...

eb-openverse-block/eb-openverse-block.php Passed 13 tests

This is the main PHP file of "EB Openverse Block" 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
111 characters long description:
Easily search & use royalty free images, stock photos, CC-licensed images, etc from Openverse for your website.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected18,322 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
SVG50012,231
CSS61,503485,075
PHP11179219906
JavaScript511798
JSON20012

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.56
Average class complexity23.71
▷ Minimum class complexity1.00
▷ Maximum class complexity49.00
Average method complexity4.45
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes114.29%
Methods43
▷ Static methods2660.47%
▷ Public methods3376.74%
▷ Protected methods00.00%
▷ Private methods1023.26%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
Constants3
▷ Global constants3100.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
PNG images were not found in this plugin