Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼0.30ms] Passed 4 tests
A check of server-side resources used by Simple PHP Info
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 41.89 ▲0.87 |
Dashboard /wp-admin | 3.72 ▲0.42 | 61.47 ▲14.25 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 45.00 ▼3.54 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 89.91 ▲1.34 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 32.87 ▲0.14 |
Simple PHP Info /wp-admin/options-general.php?page=simple-php-info | 3.21 | 36.51 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
simple_php_info_options |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Simple PHP Info
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 8,138 ▲5,403 | 13.32 ▼1.04 | 2.08 ▲0.25 | 32.90 ▼12.01 |
Dashboard /wp-admin | 7,486 ▲5,298 | 4.95 ▼0.88 | 130.97 ▲3.56 | 96.17 ▲42.53 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.00 ▼0.03 | 39.89 ▲4.68 | 34.60 ▲0.08 |
Add New Post /wp-admin/post-new.php | 1,517 ▼16 | 17.68 ▼5.56 | 609.77 ▼71.09 | 53.44 ▼4.50 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.21 ▲0.04 | 93.10 ▼7.43 | 40.01 ▼4.77 |
Simple PHP Info /wp-admin/options-general.php?page=simple-php-info | 835 | 2.03 | 23.29 | 27.12 |
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
You still need to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- simple_php_info_options
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests Passed 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)
Good news, no errors were detected
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: phpinfo, php, debug
simple-php-info/simple-php-info.php Passed 13 tests
This is the main PHP file of "Simple PHP Info" version 1.0.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
72 characters long description:
Shows phpinfo() in a dashboard widget and creates a [phpinfo] shortcode.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin253 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 49 | 38 | 168 |
Sass | 1 | 23 | 0 | 84 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview 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.24 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 76.92% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 23.08% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.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
PNG images were not found in this plugin