Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼5.12ms] Passed 4 tests
An overview of server-side resources used by Real Time Responsive Images Plugin for WordPress by TwicPics
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 36.10 ▼4.03 |
Dashboard /wp-admin | 3.38 ▲0.07 | 44.12 ▼3.38 |
Posts /wp-admin/edit.php | 3.50 ▲0.13 | 45.19 ▼0.77 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 79.85 ▼12.31 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 35.40 ▲1.37 |
TwicPics /wp-admin/upload.php?page=twicpics | 3.27 | 29.42 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Real Time Responsive Images Plugin for WordPress by TwicPics
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲85 | 13.23 ▼1.15 | 1.81 ▲0.08 | 39.43 ▼1.95 |
Dashboard /wp-admin | 2,223 ▲35 | 5.77 ▼0.11 | 105.49 ▼3.50 | 39.59 ▼2.71 |
Posts /wp-admin/edit.php | 2,109 ▲20 | 2.00 ▼0.00 | 39.43 ▲0.82 | 35.35 ▼2.58 |
Add New Post /wp-admin/post-new.php | 1,549 ▲6 | 23.12 ▲4.89 | 632.86 ▲4.62 | 61.66 ▲0.80 |
Media Library /wp-admin/upload.php | 1,411 ▲20 | 4.31 ▼0.10 | 99.42 ▼6.38 | 43.47 ▲1.04 |
TwicPics /wp-admin/upload.php?page=twicpics | 1,048 | 2.06 | 22.86 | 29.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- > GET request to /wp-admin/upload.php?page=twicpics
- > Notice in wp-content/plugins/twicpics/class-twicpics-admin.php+62
Trying to access array offset on value of type bool
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
Almost there! Just fix the following items
- 7× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/twicpics/class-twicpics-api.php
- > /wp-content/plugins/twicpics/assets/logo.svg.php
- > /wp-content/plugins/twicpics/twicpics.php
- > /wp-content/plugins/twicpics/class-twicpics.php
- > /wp-content/plugins/twicpics/class-twicpics-script.php
- > /wp-content/plugins/twicpics/class-twicpics-admin.php
- > /wp-content/plugins/twicpics/class-twicpics-urls-manager.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Tags: You are using too many tags: 15 tag instead of maximum 10
twicpics/twicpics.php Passed 13 tests
Analyzing the main PHP file in "Real Time Responsive Images Plugin for WordPress by TwicPics" version 0.2.4
41 characters long description:
Delivers pixel perfect images on the fly.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin1,568 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 301 | 448 | 1,469 |
PO File | 1 | 26 | 26 | 99 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 61.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 104.00 |
Average method complexity | 7.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 91.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 49 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 26 | 53.06% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 23 | 46.94% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 11 | 100.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
There were not PNG files found in your plugin