Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/identifying-iranians/vahidd_widget.php+15
Methods with the same name as their class will not be constructors in a future version of PHP; IranianWidget has a deprecated constructor
Server metrics [RAM: ▼1.91MB] [CPU: ▼52.68ms] Passed 4 tests
Server-side resources used by Identifying Iranians
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 4.82 ▼37.68 |
Dashboard /wp-admin | 2.10 ▼1.20 | 6.12 ▼45.85 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 5.74 ▼45.75 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 7.08 ▼81.45 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 5.95 ▼31.22 |
افزونه ایرانیان /wp-admin/tools.php?page=Iranian | 2.10 | 6.04 |
Server storage [IO: ▲0.87MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_iranianwidget |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Identifying Iranians: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 14.35 ▼0.21 | 1.85 ▲0.11 | 41.49 ▼6.10 |
Dashboard /wp-admin | 2,202 ▲25 | 5.60 ▲0.01 | 91.91 ▲0.63 | 46.04 ▲1.58 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.02 ▼0.01 | 39.90 ▼0.87 | 40.62 ▲3.15 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.39 ▼0.05 | 666.34 ▼25.59 | 64.59 ▲9.45 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.20 ▼0.03 | 97.93 ▼6.15 | 46.29 ▲0.96 |
افزونه ایرانیان /wp-admin/tools.php?page=Iranian | 796 | 2.14 | 25.49 | 48.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/identifying-iranians/vahidd_widget.php+15
Methods with the same name as their class will not be constructors in a future version of PHP; IranianWidget has a deprecated constructor
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_iranianwidget
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/tools.php?page=Iranian
- > Deprecated in wp-content/plugins/identifying-iranians/vahidd_widget.php+15
Methods with the same name as their class will not be constructors in a future version of PHP; IranianWidget has a deprecated constructor
- > GET request to /wp-admin/tools.php?page=Iranian
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in IranianWidget is deprecated since version 4.3.0! Use __construct() instead.
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/identifying-iranians/iranian_identification.php:12
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/identifying-iranians/vahidd_widget.php:15
- > PHP Notice
Undefined variable: geodbfile in wp-content/plugins/identifying-iranians/base.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/identifying-iranians/base.php:58
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: Screenshot #1 (2.) image not found
- Donate link: Please fix this invalid URI: "vahidd.com"
identifying-iranians/iranian_identification.php 85% from 13 tests
The main PHP file in "Identifying Iranians" ver. 1.3 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 152 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("identifying-iranians.php" instead of "iranian_identification.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin843 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 60 | 47 | 843 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 3.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin