Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼5.16ms] Passed 4 tests
Server-side resources used by WP Is Connected by Azed
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 44.56 ▲4.06 |
Dashboard /wp-admin | 3.35 ▲0.05 | 49.23 ▼2.34 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 54.04 ▲1.38 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 98.39 ▼23.74 |
Media Library /wp-admin/upload.php | 3.27 ▲0.05 | 41.24 ▲6.09 |
Is connected Examples /wp-admin/plugins.php?page=AzedWPIsConnected | 3.34 | 33.34 |
Server storage [IO: ▲0.74MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Is Connected by Azed
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲4 | 13.24 ▼1.01 | 1.63 ▼0.21 | 46.69 ▲3.45 |
Dashboard /wp-admin | 2,210 ▲7 | 4.85 ▲0.00 | 108.29 ▲6.64 | 45.20 ▲7.06 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▼0.02 | 43.68 ▲2.49 | 35.36 ▲2.13 |
Add New Post /wp-admin/post-new.php | 1,538 ▲5 | 23.21 ▼0.02 | 731.51 ▲65.92 | 57.12 ▼4.08 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.18 ▼0.03 | 93.70 ▼2.50 | 41.67 ▼1.66 |
Is connected Examples /wp-admin/plugins.php?page=AzedWPIsConnected | 798 | 2.15 | 27.17 | 26.89 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-is-connected-by-azed/wp-is-connected-by-azed.php:25
- > PHP Fatal error
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)
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: role, not, connected, user
wp-is-connected-by-azed/wp-is-connected-by-azed.php Passed 13 tests
The primary PHP file in "WP Is Connected by Azed" version 0.1 is used by WordPress to initiate all plugin functionality
54 characters long description:
You want to show specific content for each user role ?
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin464 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 23 | 13 | 270 |
JavaScript | 1 | 5 | 4 | 98 |
PO File | 1 | 24 | 27 | 64 |
CSS | 1 | 10 | 2 | 32 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 31.00 |
▷ Minimum class complexity | 31.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 4.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.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 | 9 | |
▷ Static methods | 1 | 11.11% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.71MB with 0.44MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-3.png | 170.93KB | 66.70KB | ▼ 60.98% |
assets/screenshot-4.png | 195.85KB | 75.31KB | ▼ 61.55% |
assets/screenshot-2.png | 190.49KB | 75.50KB | ▼ 60.36% |
assets/screenshot-1.png | 171.21KB | 65.08KB | ▼ 61.99% |