Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼6.86ms] Passed 4 tests
Analyzing server-side resources used by WP DataDisplay
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 41.59 ▼0.42 |
Dashboard /wp-admin | 3.33 ▲0.03 | 45.21 ▼5.13 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 46.50 ▼4.80 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 82.17 ▼15.70 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 35.42 ▼1.81 |
WPDataDisplay /wp-admin/options-general.php?page=wpdatadisplay | 3.20 | 29.75 |
Data Display /wp-admin/edit.php?post_type=wpdatadisplay | 3.30 | 35.15 |
Add New /wp-admin/post-new.php?post_type=wpdatadisplay | 3.40 | 50.29 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for WP DataDisplay
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲77 | 13.37 ▼1.00 | 1.80 ▼0.46 | 43.74 ▼7.48 |
Dashboard /wp-admin | 2,231 ▲43 | 5.84 ▲0.04 | 97.50 ▼10.00 | 38.27 ▼4.13 |
Posts /wp-admin/edit.php | 2,120 ▲31 | 2.03 ▲0.04 | 34.68 ▼5.62 | 35.39 ▼0.31 |
Add New Post /wp-admin/post-new.php | 1,559 ▲26 | 22.96 ▼0.26 | 662.39 ▼3.04 | 59.16 ▲5.70 |
Media Library /wp-admin/upload.php | 1,422 ▲37 | 4.27 ▲0.10 | 98.45 ▼13.94 | 42.83 ▼4.32 |
WPDataDisplay /wp-admin/options-general.php?page=wpdatadisplay | 866 | 2.02 | 22.00 | 23.68 |
Data Display /wp-admin/edit.php?post_type=wpdatadisplay | 1,135 | 1.93 | 30.10 | 31.09 |
Add New /wp-admin/post-new.php?post_type=wpdatadisplay | 2,817 | 7.71 | 179.22 | 75.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wpdatadisplay
- > Notice in wp-content/plugins/wp-datadisplay/wpdatadisplay.php+53
Trying to access array offset on value of type bool
SRP 50% 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 fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-datadisplay/wpdatadisplay.php:32
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: custom database, data
wp-datadisplay/wpdatadisplay.php 92% from 13 tests
The principal PHP file in "WP DataDisplay" v. 0.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-datadisplay.php" instead of "wpdatadisplay.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin245 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 62 | 45 | 231 |
CSS | 1 | 2 | 0 | 14 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
1 PNG file occupies 0.08MB with 0.06MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
datadisplay settings screen.png | 85.51KB | 28.65KB | ▼ 66.49% |