Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼139.53ms] Passed 4 tests
A check of server-side resources used by real.PostImages
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 33.84 ▲13.26 |
Dashboard /wp-admin | 3.09 ▲0.04 | 44.45 ▲0.69 |
Posts /wp-admin/edit.php | 3.14 ▲0.04 | 45.70 ▲3.54 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 96.39 ▼559.58 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 30.41 ▼2.77 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for real.PostImages
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲83 | 15.98 ▲0.47 | 7.45 ▼1.50 | 45.96 ▼3.40 |
Dashboard /wp-admin | 2,970 ▲39 | 5.90 ▼0.05 | 133.74 ▼10.01 | 113.77 ▲7.95 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.69 ▲0.00 | 70.72 ▲5.22 | 88.21 ▼3.34 |
Add New Post /wp-admin/post-new.php | 1,712 ▲40 | 17.36 ▼1.39 | 365.07 ▲15.78 | 114.52 ▲2.43 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.02 ▲0.02 | 145.71 ▼12.61 | 125.31 ▲8.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/real-postimages/real-postImages.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/real-postimages/tpl/images.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_locale() in wp-content/plugins/real-postimages/tpl/real.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 79% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: A description for screenshot #2 is missing in real-postimages/assets to your readme.txt
- Donate link: Please fix this invalid URI: ""
- Tags: You are using too many tags: 13 tag instead of maximum 10
real-postimages/real-postImages.php 77% from 13 tests
Analyzing the main PHP file in "real.PostImages" version 1.3
Please make the necessary changes and fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Description: Keep the plugin description shorter than 140 characters (currently 291 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("real-postimages.php" instead of "real-postImages.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
Success! There were no dangerous files found in this plugin231 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 23 | 27 | 121 |
JavaScript | 1 | 17 | 4 | 51 |
CSS | 1 | 0 | 0 | 36 |
PO File | 1 | 2 | 2 | 23 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
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 | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin