Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.02MB] [CPU: ▼312.35ms] Passed 4 tests
Server-side resources used by Featured Image Checker
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.83 ▲0.12 | 30.85 ▲1.88 |
Dashboard /wp-admin | 3.06 ▲0.01 | 33.69 ▼14.36 |
Posts /wp-admin/edit.php | 3.01 ▼0.10 | 31.61 ▼11.41 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 95.05 ▼1,218.90 |
Media Library /wp-admin/upload.php | 3.00 ▼0.00 | 32.49 ▼4.72 |
Server storage [IO: ▲0.00MB] [DB: ▲0.72MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Featured Image Checker
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,702 ▲96 | 15.96 ▲0.49 | 8.01 ▲0.47 | 49.40 ▲1.41 |
Dashboard /wp-admin | 2,962 ▲112 | 5.89 ▼0.08 | 139.06 ▼13.86 | 100.30 ▼13.94 |
Posts /wp-admin/edit.php | 2,719 ▲13 | 2.68 ▼0.02 | 64.03 ▲0.12 | 82.72 ▼2.44 |
Add New Post /wp-admin/post-new.php | 1,653 ▼200 | 18.79 ▼0.22 | 365.78 ▼6.10 | 107.05 ▼3.43 |
Media Library /wp-admin/upload.php | 1,775 ▲62 | 5.01 ▲0.03 | 146.15 ▼2.05 | 112.88 ▲3.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.72MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully
Smoke tests 75% from 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)
Even though no errors were found, this is by no means an exhaustive test
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
Please take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/featured-image-checker/featured-image-checker.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: featured image check, featured image
featured-image-checker/featured-image-checker.php Passed 13 tests
The main PHP script in "Featured Image Checker" version 1.0.0 is automatically included on every request by WordPress
116 characters long description:
This plugin checks if the post has a featured image set or not. It displays yes/no on the posts page on the backend.
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
Everything looks great! No dangerous files found in this plugin27 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 10 | 9 | 27 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 2 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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 1 test
Image compression Passed 1 test
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin