Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/wp-fake-image-replacer/apis/phpFlickr.php+22
Methods with the same name as their class will not be constructors in a future version of PHP; phpFlickr has a deprecated constructor
Server metrics [RAM: ▼1.12MB] [CPU: ▼59.67ms] Passed 4 tests
This is a short check of server-side resources used by WP Fake Image Replacer
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▼0.60 | 6.17 ▼36.98 |
Dashboard /wp-admin | 2.88 ▼0.42 | 7.72 ▼42.06 |
Posts /wp-admin/edit.php | 2.88 ▼0.47 | 9.54 ▼41.62 |
Add New Post /wp-admin/post-new.php | 2.88 ▼3.00 | 9.02 ▼118.01 |
Media Library /wp-admin/upload.php | 2.88 ▼0.35 | 10.49 ▼27.52 |
WP Fake Image /wp-admin/options-general.php?page=wpfir_settings | 2.88 | 8.03 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
wpfir_settings |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for WP Fake Image Replacer
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲38 | 13.24 ▼1.06 | 4.04 ▲2.06 | 42.19 ▼3.50 |
Dashboard /wp-admin | 2,210 ▲19 | 4.88 ▲0.01 | 109.48 ▲9.83 | 42.32 ▼3.20 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.04 ▲0.05 | 38.98 ▲3.44 | 35.24 ▲0.10 |
Add New Post /wp-admin/post-new.php | 1,535 ▲7 | 22.17 ▲3.65 | 653.51 ▼8.82 | 56.26 ▲4.60 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.14 ▼0.16 | 105.08 ▼12.61 | 48.21 ▼0.21 |
WP Fake Image /wp-admin/options-general.php?page=wpfir_settings | 1,136 | 2.85 | 46.44 | 29.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/wp-fake-image-replacer/apis/phpFlickr.php+22
Methods with the same name as their class will not be constructors in a future version of PHP; phpFlickr has a deprecated constructor
- The uninstall procedure has failed, leaving 7 options in the database
- wpfir_settings
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=wpfir_settings
- > Deprecated in wp-content/plugins/wp-fake-image-replacer/apis/phpFlickr.php+22
Methods with the same name as their class will not be constructors in a future version of PHP; phpFlickr has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=wpfir_settings
- > Deprecated in wp-content/plugins/wp-fake-image-replacer/apis/phpFlickr.php+1684
Methods with the same name as their class will not be constructors in a future version of PHP; phpFlickr_pager has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=wpfir_settings
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=wpfir_settings
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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 take a closer look at the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-fake-image-replacer/core/controllers/options-page.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/wp-fake-image-replacer/core/views/options-page.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: post thumbnail, image replacer, theme development, fake image, image holder
wp-fake-image-replacer/wp-fake-image-replacer.php Passed 13 tests
This is the main PHP file of "WP Fake Image Replacer" version 1.5.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
119 characters long description:
Replace an empty post thumbnail with a same size fake image. Useful for theme developement. Just activate and it works.
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
There were no executable files found in this plugin2,052 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 489 | 573 | 1,604 |
JavaScript | 2 | 70 | 15 | 357 |
PO File | 1 | 28 | 29 | 91 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 58.75 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 184.00 |
Average method complexity | 2.01 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 229 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 226 | 98.69% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 1.31% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
There are no PNG files in this plugin