Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼8.02ms] Passed 4 tests
Server-side resources used by Logo Manager For Enamad
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 41.33 ▼1.40 |
Dashboard /wp-admin | 3.34 ▼0.00 | 48.30 ▼16.13 |
Posts /wp-admin/edit.php | 3.45 ▲0.10 | 49.62 ▼4.01 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 92.73 ▼10.55 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 39.29 ▲1.60 |
نماد الکترونیکی /wp-admin/options-general.php?page=enamadlogo-options | 3.22 | 43.23 |
Server storage [IO: ▲0.03MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_enamad_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
enamad_logo |
theysaidso_admin_options |
widget_recent-comments |
widget_enamad_shamed_widget |
widget_enamad_custom_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Logo Manager For Enamad
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲8 | 14.28 ▼0.06 | 1.83 ▼0.29 | 42.15 ▼3.14 |
Dashboard /wp-admin | 2,199 ▲19 | 5.62 ▲0.01 | 89.24 ▲0.03 | 40.05 ▼4.01 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.02 ▲0.06 | 38.19 ▼2.67 | 40.39 ▲2.58 |
Add New Post /wp-admin/post-new.php | 1,540 ▲10 | 23.25 ▲0.30 | 655.10 ▲12.52 | 56.92 ▲12.24 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.20 ▲0.01 | 99.56 ▼8.02 | 47.38 ▲2.69 |
نماد الکترونیکی /wp-admin/options-general.php?page=enamadlogo-options | 1,056 | 1.89 | 29.33 | 94.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options were found after uninstall: 10 options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_enamad_shamed_widget
- widget_enamad_custom_widget
- widget_enamad_widget
- widget_theysaidso_widget
- widget_recent-posts
- enamad_logo
- theysaidso_admin_options
Smoke tests 50% from 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 0% 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 take a closer look at the following
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/logo-manager-for-enamad/index.php
- > /wp-content/plugins/logo-manager-for-enamad/simple-class-options.php
- > /wp-content/plugins/logo-manager-for-enamad/fns.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/logo-manager-for-enamad/widgets.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: shamed, iran, enamad logo, wordpress enamad, wordpress enamad plugin...
logo-manager-for-enamad/index.php 85% from 13 tests
The primary PHP file in "Logo Manager For Enamad" version 0.7.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("logo-manager-for-enamad.php" instead of "index.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 213 characters long)
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
There were no executable files found in this plugin619 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 127 | 130 | 601 |
HTML | 1 | 0 | 11 | 18 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 6.20 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 2.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
logo.png | 3.76KB | 1.55KB | ▼ 58.75% |