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.00MB] [CPU: ▼147.91ms] Passed 4 tests
Server-side resources used by WPGlobus Featured Images
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 35.38 ▲9.71 |
Dashboard /wp-admin | 3.06 ▲0.01 | 37.16 ▼7.85 |
Posts /wp-admin/edit.php | 3.11 ▲0.01 | 44.21 ▼2.92 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 82.72 ▼583.66 |
Media Library /wp-admin/upload.php | 3.01 ▲0.00 | 36.03 ▲2.81 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for WPGlobus Featured Images
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲83 | 15.87 ▲0.42 | 7.90 ▼0.30 | 51.99 ▲5.18 |
Dashboard /wp-admin | 2,967 ▲33 | 5.89 ▼0.05 | 143.63 ▼17.05 | 123.58 ▲6.18 |
Posts /wp-admin/edit.php | 2,736 ▼3 | 2.69 ▲0.01 | 63.25 ▼8.52 | 101.14 ▲4.13 |
Add New Post /wp-admin/post-new.php | 1,683 ▲102 | 18.79 ▼1.65 | 371.02 ▼21.26 | 115.43 ▼1.11 |
Media Library /wp-admin/upload.php | 1,810 ▲3 | 5.00 ▼0.01 | 158.80 ▲1.62 | 128.20 ▼1.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
The SRP test was a success
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Tags: There are too many tags (12 tag instead of maximum 10)
wpglobus-featured-images/wpglobus-featured-images.php Passed 13 tests
"WPGlobus Featured Images" version 2.4.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
68 characters long description:
Set featured image separately for each language defined in WPGlobus.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin957 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 258 | 359 | 704 |
JavaScript | 4 | 15 | 28 | 154 |
Markdown | 1 | 37 | 0 | 99 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 108.00 |
▷ Minimum class complexity | 108.00 |
▷ Maximum class complexity | 108.00 |
Average method complexity | 5.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 9 | 36.00% |
▷ Public methods | 23 | 92.00% |
▷ Protected methods | 2 | 8.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 images were found in this plugin