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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 47.13 ▲4.51 |
Dashboard /wp-admin | 3.49 ▲0.14 | 52.19 ▼11.56 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 46.19 ▼4.63 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 87.19 ▼9.31 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 38.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.36 ▼0.01 | 1.78 ▲0.11 | 42.79 ▼0.59 |
Dashboard /wp-admin | 2,192 ▲12 | 5.50 ▼0.14 | 98.73 ▲12.16 | 50.63 ▲11.54 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.01 ▲0.05 | 36.94 ▼6.81 | 31.32 ▼4.48 |
Add New Post /wp-admin/post-new.php | 1,666 ▲140 | 24.28 ▲1.32 | 671.37 ▼40.69 | 39.10 ▼24.35 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.22 ▲0.04 | 105.11 ▼21.01 | 46.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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 5 | 0 | 0 | 12,231 |
CSS | 6 | 1,503 | 48 | 5,075 |
PHP | 11 | 179 | 219 | 906 |
JavaScript | 5 | 11 | 7 | 98 |
JSON | 2 | 0 | 0 | 12 |
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 code | 0.56 |
Average class complexity | 23.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 4.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 1 | 14.29% |
Methods | 43 | |
▷ Static methods | 26 | 60.47% |
▷ Public methods | 33 | 76.74% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 23.26% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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