Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼293.71ms] Passed 4 tests
A check of server-side resources used by 4blit
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.20 | 59.87 ▲5.86 |
Dashboard /wp-admin | 3.61 ▲0.21 | 43.01 ▲3.52 |
Posts /wp-admin/edit.php | 3.60 ▼0.04 | 82.29 ▲39.50 |
Add New Post /wp-admin/post-new.php | 7.07 ▲0.11 | 94.88 ▼1,187.89 |
Media Library /wp-admin/upload.php | 3.49 ▲0.19 | 28.87 ▲3.67 |
4blit Options /wp-admin/options-general.php?page=wp_4blit_options | 3.46 | 24.92 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 2 new options
New WordPress options |
---|
wp_4blit_api_key |
wp_4blit_default_publish |
Browser metrics Passed 4 tests
Checking browser requirements for 4blit
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,810 ▲88 | 15.42 ▲0.23 | 6.00 ▼0.56 | 2.92 ▲0.65 |
Dashboard /wp-admin | 2,907 ▲49 | 6.22 ▲0.05 | 123.48 ▼15.15 | 154.74 ▼82.96 |
Posts /wp-admin/edit.php | 2,724 ▲33 | 3.27 ▲0.04 | 64.32 ▼5.06 | 139.35 ▼14.08 |
Add New Post /wp-admin/post-new.php | 1,819 ▲151 | 23.28 ▲5.11 | 425.86 ▲5.02 | 188.85 ▲22.40 |
Media Library /wp-admin/upload.php | 1,716 ▲21 | 5.57 ▲0.11 | 127.35 ▼8.88 | 193.92 ▼67.22 |
4blit Options /wp-admin/options-general.php?page=wp_4blit_options | 1,169 | 2.77 | 91.53 | 139.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/4blit/4blit-admin.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
- > GET request to /wp-admin/options-general.php?page=wp_4blit_options
- > Network (severe)
wp-content/plugins/4blit/css/wp-4blit.css?ver=5.9.2 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: chat, telegram, rss, feed, bot...
4blit/4blit.php 92% from 13 tests
Analyzing the main PHP file in "4blit" version 0.1.0
It is important to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected2,607 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 197 | 594 | 1,421 |
PHP | 8 | 222 | 336 | 956 |
CSS | 2 | 34 | 1 | 146 |
PO File | 1 | 29 | 40 | 84 |
PHP code Passed 2 tests
Analyzing 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.25 |
Average class complexity | 10.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 40 | |
▷ Static methods | 38 | 95.00% |
▷ Public methods | 35 | 87.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 12.50% |
Functions | 23 | |
▷ Named functions | 22 | 95.65% |
▷ Anonymous functions | 1 | 4.35% |
Constants | 39 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 39 | 100.00% |
▷ Public constants | 39 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin