Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▼1.13MB] [CPU: ▼324.40ms] Passed 4 tests
Server-side resources used by Easygram
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.17 | 53.60 ▲4.42 |
Dashboard /wp-admin | 3.20 ▼0.21 | 18.52 ▼15.60 |
Posts /wp-admin/edit.php | 3.20 ▼0.45 | 18.61 ▼19.23 |
Add New Post /wp-admin/post-new.php | 3.20 ▼3.78 | 25.74 ▼1,254.63 |
Media Library /wp-admin/upload.php | 3.20 ▼0.10 | 18.00 ▼8.13 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 1 new option
New WordPress options |
---|
eg_general_options |
Browser metrics Passed 4 tests
Checking browser requirements for Easygram
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,520 ▼1,234 | 6.91 ▼8.73 | 8.24 ▲2.47 | 2.60 ▼0.15 |
Dashboard /wp-admin | 1,859 ▼999 | 3.38 ▼2.69 | 117.34 ▼19.24 | 183.78 ▲24.82 |
Posts /wp-admin/edit.php | 1,831 ▼857 | 2.01 ▼1.23 | 66.99 ▲3.15 | 145.95 ▲1.93 |
Add New Post /wp-admin/post-new.php | 1,603 ▼149 | 13.14 ▼8.35 | 733.47 ▲275.89 | 167.29 ▲6.34 |
Media Library /wp-admin/upload.php | 1,031 ▼667 | 3.24 ▼2.26 | 129.37 ▼15.25 | 211.31 ▲24.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > User deprecated in wp-includes/functions.php+5316
add_object_page is deprecated since version 4.5.0! Use add_menu_page() instead.
- Zombie WordPress options detected upon uninstall: 1 option
- eg_general_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easygram/index.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/easygram/media-form.php:8
- > PHP Warning
opendir(EGDIRfunctions/): failed to open dir: No such file or directory in wp-content/plugins/easygram/functions/load-includes.php on line 6
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/easygram/index.php on line 12
- > PHP Warning
Use of undefined constant EGDIR - assumed 'EGDIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/easygram/functions/load-includes.php on line 5
- > PHP Notice
Undefined index: post_id in wp-content/plugins/easygram/media-form.php on line 5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: These screenshots do not have images: #1 (Easygram Authorized), #2 (Add media pop up), #3 (Instagram Tab Selected)
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== easygram ===
)
easygram/index.php 92% from 13 tests
Analyzing the main PHP file in "Easygram" version 1.0.1
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("easygram.php" instead of "index.php")
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
No dangerous file extensions were detected1,081 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 108 | 115 | 680 |
CSS | 3 | 44 | 86 | 333 |
JavaScript | 2 | 11 | 2 | 68 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 35.33 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 57.00 |
Average method complexity | 4.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 30 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
10 PNG files occupy 0.17MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/step-1.png | 15.10KB | 6.94KB | ▼ 54.04% |
3-Instagram-Tab-Selected.png | 43.01KB | 12.83KB | ▼ 70.16% |
css/images/instagram-32.png | 3.30KB | 0.46KB | ▼ 86.20% |
1-Easygram-Authorized.png | 18.73KB | 8.01KB | ▼ 57.23% |
css/images/step-2.png | 19.23KB | 7.82KB | ▼ 59.36% |