Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/igreen-alexa-site-rank/index.php+166
Methods with the same name as their class will not be constructors in a future version of PHP; ParseXml has a deprecated constructor
Server metrics [RAM: ▼1.89MB] [CPU: ▼52.84ms] Passed 4 tests
This is a short check of server-side resources used by Igreen Alexa Site Rank
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.10 ▼1.36 | 4.88 ▼39.05 |
Dashboard /wp-admin | 2.12 ▼1.18 | 6.32 ▼40.00 |
Posts /wp-admin/edit.php | 2.12 ▼1.24 | 5.91 ▼46.24 |
Add New Post /wp-admin/post-new.php | 2.12 ▼3.77 | 7.49 ▼86.05 |
Media Library /wp-admin/upload.php | 2.12 ▼1.11 | 5.49 ▼24.05 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_igreen_alexa_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Igreen Alexa Site Rank
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,848 ▲102 | 13.55 ▼0.83 | 1.67 ▼0.28 | 43.05 ▼3.79 |
Dashboard /wp-admin | 2,257 ▲72 | 5.87 ▲0.99 | 109.21 ▲8.18 | 43.79 ▼1.16 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.01 ▲0.02 | 39.19 ▼3.15 | 34.36 ▼2.39 |
Add New Post /wp-admin/post-new.php | 1,536 ▲8 | 23.32 ▼0.08 | 603.59 ▼56.53 | 52.52 ▼1.47 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.14 ▼0.08 | 94.52 ▼10.15 | 45.79 ▼1.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/igreen-alexa-site-rank/index.php+166
Methods with the same name as their class will not be constructors in a future version of PHP; ParseXml has a deprecated constructor
- Zombie WordPress options were found after uninstall: 7 options
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_igreen_alexa_widget
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/igreen-alexa-site-rank/index.php:14
- > 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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: alexa api, alexa rank widgets, alexa rank, seo
igreen-alexa-site-rank/index.php 92% from 13 tests
Analyzing the main PHP file in "Igreen Alexa Site Rank" version 4.0.0
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("igreen-alexa-site-rank.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin190 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 57 | 104 | 190 |
PHP code Passed 2 tests
An overview of 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.24 |
Average class complexity | 7.67 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 2.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 89.47% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 10.53% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
No PNG files were detected