Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼7.71ms] Passed 4 tests
A check of server-side resources used by Singsys -Awesome Gallery
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 39.73 ▼7.34 |
Dashboard /wp-admin | 3.36 ▲0.01 | 43.91 ▼17.16 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 45.33 ▼0.10 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 90.17 ▼6.23 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 37.35 ▲0.90 |
Add Gallery /wp-admin/admin.php?page=singsys_new_gallery | 3.33 | 33.23 |
Gallery /wp-admin/admin.php?page=singsys_gallery | 3.25 | 32.83 |
Server storage [IO: ▲0.61MB] [DB: ▲0.00MB] 67% from 3 tests
Input-output and database impact of this plugin
Please try to fix the following items
- There were 2 files (0.00KB) illegally modified outside of "wp-content/plugins/awesome-gallery-singsys/" and "wp-content/uploads/"
- (new file) "wp-content/plugins/awesome-gallery-singsys/screenshots/Singsys Responsive Slider \342\200\271 Spacious \342\200\224 WordPress 2015-07-24 11-08-37.png"
- (new file) "wp-content/plugins/awesome-gallery-singsys/screenshots/Add Or Update Slider \342\200\271 Spacious \342\200\224 WordPress 2015-07-24 11-09-24.png"
Filesystem: 14 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_singsys_items |
wp_singsys_gallery |
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
singsys_gallery_version |
Browser metrics Passed 4 tests
Singsys -Awesome Gallery: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,927 ▲181 | 13.66 ▼0.53 | 5.26 ▲3.30 | 43.65 ▲0.71 |
Dashboard /wp-admin | 2,229 ▲41 | 5.83 ▼0.17 | 101.13 ▼13.15 | 39.84 ▼2.32 |
Posts /wp-admin/edit.php | 2,112 ▲23 | 2.04 ▲0.05 | 34.94 ▼4.60 | 31.60 ▼9.56 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 17.52 ▼5.61 | 644.32 ▼20.25 | 54.66 ▼2.72 |
Media Library /wp-admin/upload.php | 1,411 ▲26 | 4.17 ▼0.01 | 95.29 ▼4.72 | 43.75 ▼1.92 |
Add Gallery /wp-admin/admin.php?page=singsys_new_gallery | 1,086 | 3.06 | 44.31 | 30.30 |
Gallery /wp-admin/admin.php?page=singsys_gallery | 824 | 2.06 | 24.51 | 26.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/awesome-gallery-singsys/page/new.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/awesome-gallery-singsys/page/index.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/awesome-gallery-singsys/index.php:19
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=singsys_new_gallery
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/awesome-gallery-singsys/script/media.js:68:31)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/admin.php?page=singsys_new_gallery
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: $(...).live is not a function
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: gallery, awesome gallery, responsive gallery
awesome-gallery-singsys/index.php 92% from 13 tests
"Singsys -Awesome Gallery" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("awesome-gallery-singsys.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected790 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 79 | 48 | 547 |
CSS | 2 | 18 | 3 | 176 |
JavaScript | 3 | 29 | 10 | 67 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.31MB with 0.14MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshots/Add Or Update Slider ‹ Spacious — WordPress 2015-07-24 11-09-24.png | 258.31KB | 80.52KB | ▼ 68.83% |
screenshots/Singsys Responsive Slider ‹ Spacious — WordPress 2015-07-24 11-08-37.png | 53.95KB | 20.10KB | ▼ 62.74% |
img/close.png | 0.24KB | 0.23KB | ▼ 2.07% |