Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▼1.38MB] [CPU: ▼44.17ms] Passed 4 tests
Server-side resources used by Selfie
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.61 ▼0.85 | 17.63 ▼26.04 |
Dashboard /wp-admin | 2.62 ▼0.68 | 13.70 ▼36.28 |
Posts /wp-admin/edit.php | 2.63 ▼0.73 | 13.40 ▼33.47 |
Add New Post /wp-admin/post-new.php | 2.63 ▼3.26 | 12.89 ▼80.88 |
Media Library /wp-admin/upload.php | 2.63 ▼0.60 | 15.71 ▼15.89 |
How To Get Started /wp-admin/admin.php?page=Selfie-Help | 2.62 | 13.81 |
Important Tips /wp-admin/admin.php?page=Selfie-Tips | 2.62 | 13.97 |
Account Setup /wp-admin/admin.php?page=Selfie | 2.62 | 12.86 |
Server storage [IO: ▲1.16MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 62 new files
Database: no new tables, 10 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
Selfie_Installed_0.2.2 |
widget_selfie_sidebar |
can_compress_scripts |
Selfie_Installed |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Selfie_Fake_Post_ID |
Browser metrics Passed 4 tests
Checking browser requirements for Selfie
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,873 ▲116 | 13.29 ▼1.11 | 2.93 ▲0.94 | 42.22 ▼7.81 |
Dashboard /wp-admin | 2,236 ▲48 | 4.93 ▲0.05 | 101.71 ▼16.07 | 73.67 ▲25.07 |
Posts /wp-admin/edit.php | 2,128 ▲39 | 1.99 ▲0.00 | 38.70 ▲2.04 | 36.87 ▲2.54 |
Add New Post /wp-admin/post-new.php | 6,497 ▲4,959 | 23.26 ▲0.45 | 927.16 ▲253.28 | 58.24 ▲6.45 |
Media Library /wp-admin/upload.php | 1,412 ▲27 | 4.21 ▲0.00 | 95.24 ▼9.83 | 63.05 ▲17.12 |
How To Get Started /wp-admin/admin.php?page=Selfie-Help | 1,213 | 4.76 | 143.45 | 48.50 |
Important Tips /wp-admin/admin.php?page=Selfie-Tips | 1,148 | 4.51 | 127.34 | 35.75 |
Account Setup /wp-admin/admin.php?page=Selfie | 2,222 | 6.17 | 149.61 | 61.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Uninstall procedure had uncaught errors
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in Selfie_Zone_Widget is deprecated since version 4.3.0! Use __construct() instead.
- This plugin did not uninstall successfully, leaving 10 options in the database
- Selfie_Fake_Post_ID
- widget_recent-comments
- widget_theysaidso_widget
- widget_selfie_sidebar
- widget_recent-posts
- Selfie_Installed
- Selfie_Installed_0.2.2
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=Selfie
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in Selfie_Zone_Widget is deprecated since version 4.3.0! Use __construct() instead.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=Selfie
- > User deprecated in wp-includes/functions.php+5747
Function add_option was called with an argument that is deprecated since version 2.3.0 with no alternative available.
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 4× PHP files output text when accessed directly:
- > /wp-content/plugins/selfie/Selfie/Views/ads/themes/cave.php
- > /wp-content/plugins/selfie/Selfie/Views/ads/themes/metro.php
- > /wp-content/plugins/selfie/Selfie/Views/ads/selfie.php
- > /wp-content/plugins/selfie/Selfie/Views/ads/sidebar.php
- 44× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined variable: likes in wp-content/plugins/selfie/Selfie/Views/ads/themes/metro.php on line 14
- > PHP Notice
Undefined variable: post_id in wp-content/plugins/selfie/Selfie/Views/ads/themes/cave.php on line 13
- > PHP Notice
Trying to get property 'show_help' of non-object in wp-content/plugins/selfie/Selfie/Views/ads/themes/cave.php on line 16
- > PHP Fatal error
Uncaught Error: Class 'Selfie_View' not found in wp-content/plugins/selfie/Selfie/Views/admin/tips.php:4
- > PHP Notice
Undefined variable: zone_id in wp-content/plugins/selfie/Selfie/Views/ads/sidebar.php on line 2
- > PHP Notice
Undefined variable: config in wp-content/plugins/selfie/Selfie/Views/ads/selfie.php on line 4
- > PHP Notice
Undefined variable: position_id in wp-content/plugins/selfie/Selfie/Views/ads/themes/metro.php on line 13
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/selfie/Selfie/Widgets.php:6
- > PHP Fatal error
Uncaught Error: Class 'Selfie_View' not found in wp-content/plugins/selfie/Selfie/Views/admin/help.php:4
- > PHP Notice
Undefined variable: config in wp-content/plugins/selfie/Selfie/Views/ads/selfie.php on line 3
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=Selfie
- > Rendering (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1 The specified value "!" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=Selfie
- > Network (severe)
https://broadstreetads.com/blog/feed.jsonp/ - Failed to load resource: the server responded with a status of 404 ()
- > GET request to /wp-admin/admin.php?page=Selfie
- > Network (severe)
https://connect.facebook.net/en_US/fp.js - Failed to load resource: the server responded with a status of 500 ()
- > GET request to /wp-admin/admin.php?page=Selfie
- > Rendering (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== selfie ===
)
selfie/selfie.php Passed 13 tests
This is the main PHP file of "Selfie" version 0.2.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
66 characters long description:
Native in-post text ads that your readers can purchase themselves.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin5,899 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 564 | 868 | 2,651 |
JavaScript | 4 | 373 | 211 | 1,983 |
CSS | 7 | 153 | 72 | 1,265 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 17.79 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 112.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 134 | |
▷ Static methods | 64 | 47.76% |
▷ Public methods | 121 | 90.30% |
▷ Protected methods | 5 | 3.73% |
▷ Private methods | 8 | 5.97% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 30 | |
▷ Global constants | 6 | 20.00% |
▷ Class constants | 24 | 80.00% |
▷ Public constants | 24 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
18 PNG files occupy 0.47MB with 0.35MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
Selfie/Public/img/help/auto-selfie.png | 24.07KB | 7.28KB | ▼ 69.77% |
Selfie/Public/img/marty.png | 6.43KB | 2.32KB | ▼ 63.87% |
Selfie/Public/img/help/price-macro-rendered.png | 46.81KB | 12.04KB | ▼ 74.28% |
Selfie/Public/img/classified-badge.png | 3.76KB | 0.83KB | ▼ 78.03% |
Selfie/Public/img/selfie-badge.png | 3.29KB | 0.56KB | ▼ 83.04% |