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
Installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼1.25ms] Passed 4 tests
Analyzing server-side resources used by PHP Everywhere
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 41.99 ▼0.89 |
Dashboard /wp-admin | 3.39 ▲0.09 | 51.57 ▼2.61 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 47.71 ▲3.21 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 93.63 ▼4.72 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 39.91 ▲5.38 |
PHP Everywhere Block /wp-admin/admin.php?page=php-everywhere-block-more-info | 3.27 | 29.91 |
PHP Everywhere /wp-admin/options-general.php?page=php-everywhere-options | 3.29 | 30.73 |
PHP Everywhere Upgrade /wp-admin/admin.php?page=php-everywhere-upgrade | 3.31 | 36.02 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for PHP Everywhere
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,981 ▲246 | 14.40 ▼0.18 | 1.75 ▼0.10 | 46.82 ▲3.59 |
Dashboard /wp-admin | 2,368 ▲177 | 5.84 ▲0.74 | 97.86 ▼5.15 | 36.82 ▼7.08 |
Posts /wp-admin/edit.php | 2,227 ▲138 | 1.99 ▼0.02 | 39.12 ▲1.04 | 33.50 ▼3.61 |
Add New Post /wp-admin/post-new.php | 6,588 ▲5,051 | 29.33 ▲6.28 | 922.39 ▲239.91 | 60.43 ▲3.60 |
Media Library /wp-admin/upload.php | 1,660 ▲272 | 4.26 ▼0.14 | 97.61 ▼2.23 | 40.32 ▼5.96 |
PHP Everywhere Block /wp-admin/admin.php?page=php-everywhere-block-more-info | 894 | 2.02 | 25.87 | 26.55 |
PHP Everywhere /wp-admin/options-general.php?page=php-everywhere-options | 1,066 | 2.05 | 23.28 | 45.13 |
PHP Everywhere Upgrade /wp-admin/admin.php?page=php-everywhere-upgrade | 909 | 2.02 | 24.76 | 36.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/php-everywhere/public/partials/php-everywhere-public-display.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/php-everywhere/public/partials/php-everywhere-block-public-display.php:26
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Tags: There are too many tags (14 tag instead of maximum 10)
php-everywhere/phpeverywhere.php 85% from 13 tests
This is the main PHP file of "PHP Everywhere" version 3.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("php-everywhere.php" instead of "phpeverywhere.php")
- Description: The description should be shorter than 140 characters (currently 298 characters long)
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
No dangerous file extensions were detected644 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 169 | 630 | 531 |
JavaScript | 3 | 7 | 33 | 97 |
CSS | 2 | 4 | 10 | 16 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 3.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 2 | 5.88% |
▷ Public methods | 28 | 82.35% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 17.65% |
Functions | 7 | |
▷ Named functions | 4 | 57.14% |
▷ Anonymous functions | 3 | 42.86% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin