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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼7.77ms] Passed 4 tests
This is a short check of server-side resources used by WP Saint
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 41.72 ▼1.68 |
Dashboard /wp-admin | 3.36 ▲0.06 | 45.16 ▼3.96 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 47.41 ▼4.25 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 85.17 ▼21.18 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 36.51 ▲1.71 |
Third Party Scripts /wp-admin/admin.php?page=wp_saint_third_party_scripts | 3.27 | 33.38 |
Web Analytics /wp-admin/admin.php?page=wp_saint_web_analytics | 3.25 | 42.94 |
Server storage [IO: ▲0.26MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 45 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by WP Saint
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,903 ▲142 | 13.41 ▼0.85 | 8.99 ▲7.11 | 43.94 ▼1.44 |
Dashboard /wp-admin | 2,229 ▲49 | 5.58 ▲0.05 | 84.58 ▼4.44 | 36.49 ▼0.86 |
Posts /wp-admin/edit.php | 2,128 ▲28 | 2.03 ▲0.03 | 38.19 ▼2.95 | 33.94 ▼5.43 |
Add New Post /wp-admin/post-new.php | 1,553 ▲27 | 23.11 ▲0.18 | 614.09 ▼53.36 | 62.57 ▲7.94 |
Media Library /wp-admin/upload.php | 1,434 ▲40 | 4.19 ▼0.02 | 102.33 ▼3.03 | 44.39 ▲3.62 |
Third Party Scripts /wp-admin/admin.php?page=wp_saint_third_party_scripts | 1,102 | 2.47 | 39.54 | 40.73 |
Web Analytics /wp-admin/admin.php?page=wp_saint_web_analytics | 1,181 | 2.13 | 46.43 | 36.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% 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 successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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 take a closer look at the following
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-saint/admin/partials/wp-saint-admin-display.php
- > /wp-content/plugins/wp-saint/public/partials/wp-saint-public-display.php
- > /wp-content/plugins/wp-saint/admin/partials/footer.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wp-saint/admin/partials/side-menu.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wp-saint/admin/partials/header.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== wp-saint ===
) - Screenshots: Add a description for screenshot #4 in wp-saint/assets to your readme.txt
wp-saint/wp-saint.php Passed 13 tests
The entry point to "WP Saint" version 1.0.0 is a PHP file that has certain tags in its header comment area
96 characters long description:
This is a short description of what the plugin does. It's displayed in the WordPress admin area.
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
Success! There were no dangerous files found in this plugin1,930 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 651 | 1,115 | 1,430 |
JavaScript | 5 | 64 | 133 | 274 |
CSS | 6 | 49 | 21 | 226 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 97.00 |
Average method complexity | 2.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 106 | |
▷ Static methods | 12 | 11.32% |
▷ Public methods | 73 | 68.87% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 33 | 31.13% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 41 | |
▷ Global constants | 1 | 2.44% |
▷ Class constants | 40 | 97.56% |
▷ Public constants | 40 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 PNG files occupy 0.06MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/css/images/ui-icons_555555_256x240.png | 6.82KB | 4.17KB | ▼ 38.82% |
admin/css/images/ui-icons_777777_256x240.png | 6.83KB | 4.17KB | ▼ 38.92% |
admin/css/images/ui-icons_cc0000_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
admin/images/300px-X-250px-AD.png | 21.71KB | 20.84KB | ▼ 3.99% |
admin/css/images/ui-icons_444444_256x240.png | 6.83KB | 4.17KB | ▼ 38.86% |