Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼2.73ms] Passed 4 tests
Server-side resources used by Fancy Image Show
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 39.61 ▼6.49 |
Dashboard /wp-admin | 3.36 ▲0.06 | 44.14 ▼6.79 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 49.15 ▼0.11 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 92.76 ▲2.47 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 35.18 ▲2.97 |
Fancy Image Show /wp-admin/options-general.php?page=fancy-image-show | 3.29 | 32.05 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 20 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_FancyImg_plugin |
New WordPress options |
---|
db_upgraded |
FancyImg_Title |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
FancyImg_Setting |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Fancy Image Show
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,874 ▲88 | 13.47 ▼0.89 | 7.59 ▲5.45 | 43.49 ▼0.42 |
Dashboard /wp-admin | 2,199 ▲25 | 5.64 ▲0.07 | 90.12 ▼10.94 | 38.92 ▼4.84 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.99 ▲0.02 | 38.97 ▼0.99 | 38.26 ▲5.28 |
Add New Post /wp-admin/post-new.php | 1,536 ▲1 | 23.54 ▲5.49 | 650.40 ▲40.53 | 54.31 ▼15.25 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.18 ▼0.08 | 95.82 ▼1.97 | 41.21 ▲0.11 |
Fancy Image Show /wp-admin/options-general.php?page=fancy-image-show | 949 | 1.99 | 23.60 | 26.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
- 4× PHP files output text when accessed directly:
- > /wp-content/plugins/fancy-image-show/pages/content-management-show.php
- > /wp-content/plugins/fancy-image-show/pages/content-management-edit.php
- > /wp-content/plugins/fancy-image-show/pages/content-management-add.php
- > /wp-content/plugins/fancy-image-show/fancy-image-show.php
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: images, fancy, slideshow
fancy-image-show/fancy-image-show.php 92% from 13 tests
Analyzing the main PHP file in "Fancy Image Show" version 9.1
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 163 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected1,476 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 96 | 44 | 786 |
PO File | 4 | 203 | 354 | 471 |
JavaScript | 2 | 49 | 27 | 219 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 3.67 |
▷ Minimum method complexity | 2.00 |
▷ Maximum method complexity | 6.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 | 3 | |
▷ Static methods | 3 | 100.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 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
No PNG images were found in this plugin