Benchmarks
Plugin footprint 65% 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 gracefully, with no errors
Server metrics [RAM: ▲0.08MB] [CPU: ▼5.93ms] Passed 4 tests
An overview of server-side resources used by Post Display
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 42.79 ▲2.81 |
Dashboard /wp-admin | 3.39 ▲0.05 | 45.80 ▼15.81 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 46.53 ▲1.07 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 81.43 ▼11.71 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 38.02 ▲2.74 |
Post Display /wp-admin/admin.php?page=tzpost-display | 3.45 | 39.80 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 22 new files
Database: 2 new tables, 9 new options
New tables |
---|
wp_tzpost_thumbnail |
wp_tzpost_optionset |
New WordPress options |
---|
tzpostsmethod1 |
theysaidso_admin_options |
widget_theysaidso_widget |
tzpostsmethod2 |
widget_recent-posts |
db_upgraded |
tzpostsmethod3 |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Post Display
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,902 ▲156 | 13.95 ▼0.42 | 9.38 ▲7.36 | 42.07 ▼1.13 |
Dashboard /wp-admin | 2,221 ▲33 | 5.79 ▼0.01 | 102.86 ▼14.92 | 74.50 ▲29.58 |
Posts /wp-admin/edit.php | 2,104 ▲12 | 1.97 ▼0.02 | 36.25 ▼0.83 | 32.65 ▲0.04 |
Add New Post /wp-admin/post-new.php | 1,527 ▼6 | 23.38 ▲0.43 | 814.66 ▲145.57 | 62.77 ▲10.40 |
Media Library /wp-admin/upload.php | 1,400 ▲15 | 4.18 ▼0.14 | 95.55 ▼18.34 | 69.47 ▲21.59 |
Post Display /wp-admin/admin.php?page=tzpost-display | 1,720 | 2.01 | 29.58 | 31.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie tables detected upon uninstall: 2 tables
- wp_tzpost_optionset
- wp_tzpost_thumbnail
- Zombie WordPress options were found after uninstall: 9 options
- widget_recent-posts
- tzpostsmethod2
- db_upgraded
- tzpostsmethod3
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- tzpostsmethod1
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function tzpost_plugin_get_version() in wp-content/plugins/post-display/templates/template-default.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/post-display/post-display.php:12
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Screenshots: Add images for these screenshots: #1 (Add New.), #2 (Post options.), #3 (Use Shortcode.)
post-display/post-display.php 92% from 13 tests
Analyzing the main PHP file in "Post Display" version 1.0.0
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 177 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected1,644 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 134 | 81 | 1,158 |
CSS | 3 | 5 | 1 | 271 |
JavaScript | 2 | 29 | 6 | 215 |
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.52 |
Average class complexity | 31.00 |
▷ Minimum class complexity | 31.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 7.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.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 | 5 | |
▷ Static methods | 1 | 20.00% |
▷ Public methods | 3 | 60.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 40.00% |
Functions | 21 | |
▷ Named functions | 21 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
6 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/down.png | 2.77KB | 0.11KB | ▼ 95.95% |
images/tzsidebar.png | 0.23KB | 0.26KB | 0.00% |
images/up.png | 2.79KB | 0.11KB | ▼ 95.94% |
images/upb.png | 0.96KB | 0.11KB | ▼ 88.15% |
images/controls.png | 2.74KB | 1.42KB | ▼ 48.29% |