Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼7.60ms] Passed 4 tests
A check of server-side resources used by PHP Live!
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 33.87 ▼1.02 |
Dashboard /wp-admin | 3.35 ▲0.04 | 44.15 ▼4.26 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 44.42 ▼6.80 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 81.13 ▼18.32 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 37.42 ▲4.90 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_phplive_widget |
Browser metrics Passed 4 tests
Checking browser requirements for PHP Live!
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲43 | 14.53 ▲0.18 | 1.52 ▼0.00 | 39.01 ▼2.54 |
Dashboard /wp-admin | 2,207 ▲32 | 5.56 ▼0.17 | 86.80 ▼8.61 | 74.18 ▲30.76 |
Posts /wp-admin/edit.php | 2,118 ▲18 | 1.97 ▼0.06 | 40.19 ▼0.21 | 35.76 ▼1.88 |
Add New Post /wp-admin/post-new.php | 1,539 ▲13 | 23.65 ▲0.61 | 680.98 ▲1.13 | 62.44 ▲5.87 |
Media Library /wp-admin/upload.php | 1,418 ▲27 | 4.13 ▼0.26 | 100.50 ▼2.18 | 76.64 ▲29.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- widget_phplive_widget
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 4× 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/php-live-wordpress/libs/phplive.widget.php:5
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/php-live-wordpress/libs/phplive.widget.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/php-live-wordpress/phplive.php:11
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/php-live-wordpress/libs/phplive.widget.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% 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
These attributes need your attention:
- Screenshots: Please add images for these screenshots: #1 (Operator Console "default" theme), #2 (Operator Console "home" theme), #3 (Operator Console traffic monitor)
php-live-wordpress/phplive.php 92% from 13 tests
The primary PHP file in "PHP Live!" version 3.6 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("php-live-wordpress.php" instead of "phplive.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin239 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 27 | 20 | 160 |
JavaScript | 2 | 14 | 1 | 70 |
CSS | 1 | 1 | 0 | 9 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 1 | 33.33% |
Methods | 15 | |
▷ Static methods | 2 | 13.33% |
▷ Public methods | 13 | 86.67% |
▷ Protected methods | 2 | 13.33% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
4 compressed PNG files occupy 0.00MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
libs/pics/page_white_code.png | 0.59KB | 0.59KB | 0.50% |
libs/pics/wordpress.png | 0.84KB | 1.03KB | 0.00% |
libs/pics/settings.png | 0.50KB | 0.37KB | ▼ 25.05% |
libs/pics/phplive.png | 0.55KB | 0.46KB | ▼ 17.28% |