Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▼4.67ms] Passed 4 tests
An overview of server-side resources used by WPJaipho Mobile Gallery
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.26 | 50.60 ▲7.49 |
Dashboard /wp-admin | 3.36 ▲0.05 | 48.83 ▲2.79 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 44.90 ▼7.88 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 85.55 ▼19.93 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 41.17 ▲6.35 |
WPJaipho /wp-admin/options-general.php?page=wp-jaipho | 3.42 | 42.31 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 62 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
WPJaipho Mobile Gallery: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲47 | 14.48 ▲0.11 | 1.84 ▼0.13 | 48.86 ▼1.38 |
Dashboard /wp-admin | 2,210 ▲28 | 5.79 ▲0.90 | 98.96 ▼2.07 | 41.48 ▼1.55 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▼0.01 | 34.15 ▼7.98 | 31.34 ▼7.08 |
Add New Post /wp-admin/post-new.php | 1,540 ▲7 | 23.34 ▼0.17 | 691.51 ▲63.62 | 58.47 ▲6.91 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.13 ▼0.07 | 108.68 ▲11.56 | 49.64 ▲5.83 |
WPJaipho /wp-admin/options-general.php?page=wp-jaipho | 1,321 | 2.07 | 31.03 | 29.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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
- 47× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Warning
require_once(Jph/Wp/Admin/Validator/IValidator.php): failed to open stream: No such file or directory in wp-content/plugins/wpjaipho/library/Jph/Wp/Admin/Validator/OptionListDefinition.php on line 3
- > PHP Warning
require_once(Jph/Wp/Admin/Validator/ValidatorResponse.php): failed to open stream: No such file or directory in wp-content/plugins/wpjaipho/library/Jph/Wp/Admin/Validator/IValidator.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'Jph/Wp/JaiphoPlugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/wpjaipho/gallery.php on line 3
- > PHP Warning
require_once(Jph/Wp/Admin/Editor/IEditor.php): failed to open stream: No such file or directory in wp-content/plugins/wpjaipho/library/Jph/Wp/Admin/Editor/Checkbox.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'Jph/Wp/Admin/Editor/IEditor.php' (include_path='.:/usr/share/php') in wp-content/plugins/wpjaipho/library/Jph/Wp/Admin/Editor/Input.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'Pipho/DeviceInfo.php' (include_path='.:/usr/share/php') in wp-content/plugins/wpjaipho/library/Jph/Wp/AbstractTemplateApi.php on line 3
- > PHP Warning
require_once(Jph/Wp/Admin/Adapter/DefaultAdapter.php): failed to open stream: No such file or directory in wp-content/plugins/wpjaipho/library/Jph/Wp/ConfigurationOption.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'Jph/Wp/Admin/Editor/IEditor.php' (include_path='.:/usr/share/php') in wp-content/plugins/wpjaipho/library/Jph/Wp/Admin/Editor/Checkbox.php on line 3
- > PHP Warning
require_once(Jph/Wp/Admin/Validator/IValidator.php): failed to open stream: No such file or directory in wp-content/plugins/wpjaipho/library/Jph/Wp/Admin/Validator/OptionIntPositiveDefinition.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'Pipho/DeviceInfo.php' (include_path='.:/usr/share/php') in wp-content/plugins/wpjaipho/library/Jph/Wp/MedialLibraryTemplate.php on line 3
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 97% 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: Please delete some tags, you are using 16 tag instead of maximum 10
wpjaipho/wpjaipho.php Passed 13 tests
The main PHP script in "WPJaipho Mobile Gallery" version 1.5.0 is automatically included on every request by WordPress
87 characters long description:
WPJaipho is a mobile image gallery plugin optimized for iPhone, iPad and Android users.
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
Good job! No executable or dangerous file extensions detected4,635 lines of code in 42 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 678 | 108 | 2,127 |
PHP | 39 | 629 | 315 | 1,917 |
CSS | 2 | 97 | 18 | 591 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 5.23 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 2.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 4 | |
Traits | 0 | |
Classes | 31 | |
▷ Abstract classes | 1 | 3.23% |
▷ Concrete classes | 30 | 96.77% |
▷ Final classes | 0 | 0.00% |
Methods | 145 | |
▷ Static methods | 17 | 11.72% |
▷ Public methods | 116 | 80.00% |
▷ Protected methods | 19 | 13.10% |
▷ Private methods | 10 | 6.90% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 2 | 22.22% |
▷ Class constants | 7 | 77.78% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
14 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
jaipho/Themes/Default/navPrev.png | 0.34KB | 0.35KB | 0.00% |
jaipho/Themes/iUI/navPlay.png | 0.39KB | 0.45KB | 0.00% |
jaipho/Themes/iUI/btnBack.png | 0.80KB | 0.91KB | 0.00% |
jaipho/Themes/iUI/toolbar.png | 0.17KB | 0.26KB | 0.00% |
jaipho/Themes/Default/navPlay.png | 0.39KB | 0.45KB | 0.00% |