Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼1.03MB] [CPU: ▼173.63ms] Passed 4 tests
Server-side resources used by Nice Video Posts
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.58 ▼0.26 | 14.30 ▼22.11 |
Dashboard /wp-admin | 2.63 ▼0.43 | 21.85 ▼22.10 |
Posts /wp-admin/edit.php | 2.63 ▼0.48 | 16.06 ▼20.48 |
Add New Post /wp-admin/post-new.php | 2.63 ▼2.81 | 15.76 ▼629.83 |
Media Library /wp-admin/upload.php | 2.63 ▼0.38 | 14.98 ▼17.39 |
Add New /wp-admin/post-new.php?post_type=video_posts | 2.63 | 15.64 |
Video Posts /wp-admin/edit.php?post_type=video_posts | 2.63 | 15.33 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Nice Video Posts
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,723 ▲151 | 15.75 ▲0.18 | 9.21 ▼1.01 | 46.48 ▲2.78 |
Dashboard /wp-admin | 3,002 ▲71 | 5.94 ▼0.02 | 133.48 ▼4.79 | 124.68 ▲7.81 |
Posts /wp-admin/edit.php | 2,793 ▲57 | 2.70 ▼0.01 | 60.57 ▼0.78 | 93.62 ▲8.24 |
Add New Post /wp-admin/post-new.php | 1,902 ▲30 | 19.17 ▲0.12 | 374.67 ▲13.99 | 104.83 ▲5.44 |
Media Library /wp-admin/upload.php | 1,787 ▼20 | 5.04 ▲0.00 | 128.54 ▼17.41 | 129.87 ▲10.95 |
Add New /wp-admin/post-new.php?post_type=video_posts | 3,271 | 8.97 | 208.29 | 159.64 |
Video Posts /wp-admin/edit.php?post_type=video_posts | 1,538 | 2.62 | 64.97 | 76.51 |
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
- Uninstall procedure validation failed for this plugin
- > Warning in wp-content/plugins/nice-video-posts/niceVideoPosts.php+53
Use of undefined constant labels - assumed 'labels' (this will throw an Error in a future version of PHP)
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=video_posts
- > POST request to /wp-admin/admin-ajax.php
- > Warning in wp-content/plugins/nice-video-posts/niceVideoPosts.php+53
Use of undefined constant labels - assumed 'labels' (this will throw an Error in a future version of PHP)
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 take a closer look at the following
- 3× 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/nice-video-posts/niceVideoPosts.php:519
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/nice-video-posts/single-video-post.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/nice-video-posts/archive-video-posts.php:1
- > 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
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Tags: You are using too many tags: 12 tag instead of maximum 10
nice-video-posts/niceVideoPosts.php 92% from 13 tests
This is the main PHP file of "Nice Video Posts" version 1.00, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("nice-video-posts.php" instead of "niceVideoPosts.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected603 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 84 | 132 | 539 |
CSS | 1 | 2 | 1 | 64 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
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 | 17 | |
▷ Named functions | 17 | 100.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/video-post-16x16.png | 0.38KB | 0.29KB | ▼ 23.33% |