Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.22MB] [CPU: ▼1.68ms] Passed 4 tests
An overview of server-side resources used by WordPress for My Clients
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.22 | 42.28 ▼1.35 |
Dashboard /wp-admin | 3.56 ▲0.22 | 50.04 ▼4.10 |
Posts /wp-admin/edit.php | 3.68 ▲0.28 | 52.42 ▲4.32 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.22 | 95.63 ▼1.56 |
Media Library /wp-admin/upload.php | 3.49 ▲0.22 | 40.22 ▲0.29 |
WP for my Clients /wp-admin/options-general.php?page=dot_wpfmc | 3.43 | 36.44 |
Server storage [IO: ▲0.53MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 52 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_embed |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
widget_flickr |
widget_facebook |
widget_contact |
Browser metrics Passed 4 tests
Checking browser requirements for WordPress for My Clients
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,641 ▼120 | 14.32 ▼0.03 | 1.76 ▼0.17 | 40.72 ▼2.52 |
Dashboard /wp-admin | 2,050 ▼122 | 5.57 ▼0.16 | 79.07 ▼21.28 | 35.89 ▼11.99 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 2.03 ▲0.02 | 40.44 ▲4.16 | 36.76 ▲4.91 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 23.26 ▲0.31 | 681.49 ▲21.66 | 57.47 ▼0.79 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.18 ▼0.11 | 96.11 ▼15.07 | 44.81 ▼3.82 |
WP for my Clients /wp-admin/options-general.php?page=dot_wpfmc | 1,043 | 1.97 | 36.48 | 30.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options detected upon uninstall: 10 options
- widget_contact
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_embed
- widget_flickr
- widget_theysaidso_widget
- widget_facebook
- widget_recent-comments
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
Almost there, just fix the following server-side errors
- 17 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=dot_wpfmc
- > Notice in wp-content/plugins/wp-for-my-clients/wordpress-for-my-clients.php+442
Trying to access array offset on value of type bool
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 fix the following items
- 10× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-for-my-clients/includes/widgets/dot-embed.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-for-my-clients/includes/customizer-library/extensions/preview.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/wp-for-my-clients/includes/metabox/init.php:41
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-for-my-clients/includes/gallery-metabox/gallery.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-for-my-clients/includes/customizer-library/extensions/style-builder.php:267
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-for-my-clients/includes/widgets/dot-facebook.php:11
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-for-my-clients/includes/widgets/dot-contact.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-for-my-clients/includes/customizer-library/extensions/interface.php:166
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-for-my-clients/includes/metabox/example-functions.php:11
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-for-my-clients/includes/widgets/dot-flickr.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: There are too many tags (13 tag instead of maximum 10)
wp-for-my-clients/wordpress-for-my-clients.php 85% from 13 tests
The main file in "WordPress for My Clients" v. 3.1.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Description: Keep the plugin description shorter than 140 characters (currently 171 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-for-my-clients.php" instead of "wordpress-for-my-clients.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin13,666 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 971 | 1,793 | 10,262 |
JavaScript | 7 | 341 | 392 | 2,274 |
CSS | 3 | 61 | 21 | 551 |
Markdown | 3 | 167 | 0 | 533 |
PO File | 1 | 16 | 22 | 46 |
PHP code Passed 2 tests
This is a very shot review 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.45 |
Average class complexity | 36.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 136.00 |
Average method complexity | 3.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.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 | 210 | |
▷ Static methods | 36 | 17.14% |
▷ Public methods | 206 | 98.10% |
▷ Protected methods | 2 | 0.95% |
▷ Private methods | 2 | 0.95% |
Functions | 40 | |
▷ Named functions | 40 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 2 | 66.67% |
▷ Class constants | 1 | 33.33% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
14 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/metabox/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
includes/metabox/images/ico-delete.png | 0.70KB | 0.72KB | 0.00% |
includes/metabox/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
includes/metabox/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |
includes/metabox/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |