Benchmarks
Plugin footprint 83% 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.10MB] [CPU: ▼1.93ms] Passed 4 tests
This is a short check of server-side resources used by Posts Block by Vikoder
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.11 | 35.97 ▼4.21 |
Dashboard /wp-admin | 3.40 ▲0.09 | 48.93 ▼0.03 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 47.75 ▲0.54 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.12 | 84.04 ▼4.02 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 37.64 ▲3.89 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 37 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
Checking browser requirements for Posts Block by Vikoder
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,910 ▲175 | 13.56 ▼0.72 | 6.14 ▲4.35 | 38.05 ▼10.83 |
Dashboard /wp-admin | 2,203 ▲15 | 5.80 ▲0.88 | 98.15 ▼16.69 | 40.20 ▼6.88 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 1.98 ▼0.04 | 38.07 ▲2.91 | 33.82 ▼0.14 |
Add New Post /wp-admin/post-new.php | 1,535 ▲1 | 18.19 ▼4.92 | 610.97 ▼65.80 | 53.13 ▲2.48 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.20 ▼0.01 | 94.87 ▼5.33 | 44.18 ▲0.68 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
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)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 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
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/vikoder-posts-block/i18n/languages/vikoder-posts-block.php:5
- > PHP Fatal error
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
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: card posts, blog, page, latest posts, post...
vikoder-posts-block/vikoder-posts-block.php Passed 13 tests
This is the main PHP file of "Posts Block by Vikoder" version 1.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
30 characters long description:
Posts block for the new editor
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin820 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 220 | 290 | 819 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 6.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 1 | 8.33% |
▷ Concrete classes | 11 | 91.67% |
▷ Final classes | 0 | 0.00% |
Methods | 64 | |
▷ Static methods | 14 | 21.88% |
▷ Public methods | 59 | 92.19% |
▷ Protected methods | 3 | 4.69% |
▷ Private methods | 2 | 3.12% |
Functions | 8 | |
▷ Named functions | 6 | 75.00% |
▷ Anonymous functions | 2 | 25.00% |
Constants | 8 | |
▷ Global constants | 1 | 12.50% |
▷ Class constants | 7 | 87.50% |
▷ Public constants | 7 | 100.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 files were detected