Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/feature-me/classes/featuremeWidget.php+18
Methods with the same name as their class will not be constructors in a future version of PHP; featuremeWidget has a deprecated constructor
Server metrics [RAM: ▼1.78MB] [CPU: ▼55.81ms] Passed 4 tests
A check of server-side resources used by Feature Me - CTA Widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.20 ▼1.26 | 5.01 ▼39.86 |
Dashboard /wp-admin | 2.22 ▼1.08 | 6.01 ▼40.78 |
Posts /wp-admin/edit.php | 2.22 ▼1.13 | 8.45 ▼42.08 |
Add New Post /wp-admin/post-new.php | 2.22 ▼3.66 | 7.00 ▼100.53 |
Media Library /wp-admin/upload.php | 2.22 ▼1.01 | 6.45 ▼29.79 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
featureme_v_new |
featureme_v |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_feature_me |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Feature Me - CTA Widget
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,896 ▲161 | 14.03 ▼0.62 | 4.64 ▲2.71 | 41.21 ▼9.03 |
Dashboard /wp-admin | 2,200 ▲12 | 5.79 ▲0.88 | 106.10 ▼1.72 | 38.28 ▼3.35 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.04 ▲0.05 | 36.80 ▼3.11 | 36.98 ▲4.00 |
Add New Post /wp-admin/post-new.php | 1,534 ▲15 | 23.23 ▲0.25 | 643.37 ▲18.48 | 61.99 ▲8.31 |
Media Library /wp-admin/upload.php | 1,391 ▲12 | 4.21 ▲0.06 | 95.74 ▼2.85 | 40.59 ▼4.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/feature-me/classes/featuremeWidget.php+18
Methods with the same name as their class will not be constructors in a future version of PHP; featuremeWidget has a deprecated constructor
- This plugin did not uninstall successfully, leaving 9 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_feature_me
- widget_theysaidso_widget
- featureme_v_new
- featureme_v
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Please take a closer look at the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/feature-me/classes/featuremeWidget.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/feature-me/init.php:49
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% 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:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
feature-me/init.php 92% from 13 tests
The principal PHP file in "Feature Me - CTA Widget" v. 1.1.3 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("feature-me.php" instead of "init.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected666 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 101 | 253 | 455 |
JavaScript | 2 | 43 | 72 | 175 |
CSS | 1 | 2 | 3 | 36 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 33.50 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 6.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 90.91% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 9.09% |
Functions | 4 | |
▷ Named functions | 4 | 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 images were found in this plugin