Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼1.71MB] [CPU: ▼51.47ms] Passed 4 tests
An overview of server-side resources used by Plugin Name: SWS Gallery
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.28 ▼1.18 | 8.68 ▼31.91 |
Dashboard /wp-admin | 2.29 ▼1.01 | 12.00 ▼39.11 |
Posts /wp-admin/edit.php | 2.30 ▼1.06 | 11.81 ▼38.63 |
Add New Post /wp-admin/post-new.php | 2.30 ▼3.59 | 11.29 ▼96.23 |
Media Library /wp-admin/upload.php | 2.30 ▼0.93 | 9.50 ▼29.49 |
SWS Gallery /wp-admin/edit.php?post_type=sws-gallery | 2.30 | 11.32 |
Add New Gallery /wp-admin/post-new.php?post_type=sws-gallery | 2.30 | 10.59 |
Server storage [IO: ▲2.33MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Plugin Name: SWS Gallery
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,963 ▲202 | 13.81 ▼0.85 | 9.25 ▲7.47 | 56.75 ▲16.07 |
Dashboard /wp-admin | 2,222 ▲48 | 5.64 ▲0.04 | 89.15 ▼8.41 | 39.02 ▼6.65 |
Posts /wp-admin/edit.php | 2,127 ▲24 | 2.02 ▼0.09 | 40.66 ▼3.00 | 36.27 ▼1.61 |
Add New Post /wp-admin/post-new.php | 1,549 ▲21 | 23.32 ▲0.22 | 653.85 ▼18.88 | 55.03 ▲0.78 |
Media Library /wp-admin/upload.php | 1,427 ▲27 | 4.24 ▲0.04 | 102.93 ▼10.84 | 43.51 ▼3.48 |
SWS Gallery /wp-admin/edit.php?post_type=sws-gallery | 1,130 | 1.94 | 30.25 | 32.34 |
Add New Gallery /wp-admin/post-new.php?post_type=sws-gallery | 2,512 | 7.78 | 173.17 | 66.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > User notice in wp-includes/functions.php+5905
Function register_taxonomy was called incorrectly. Taxonomy names must be between 1 and 32 characters in length. Please see Debugging in WordPress for more information. (This message was added in version 4.2.0.)
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
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 server-side errors were triggered
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=sws-gallery
- > User notice in wp-includes/functions.php+5905
Function register_taxonomy was called incorrectly. Taxonomy names must be between 1 and 32 characters in length. Please see Debugging in WordPress for more information. (This message was added in version 4.2.0.)
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/spyrowebz-gallery/spyrowebz-gallery.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Contributors: Plugin contributors field is missing
- Plugin Name: Please specify the plugin name on the first line (
=== Plugin Name: SWS Gallery===
) - Screenshots: These screenshots need descriptions #0, #0 in spyrowebz-gallery/assets to your readme.txt
spyrowebz-gallery/spyrowebz-gallery.php Passed 13 tests
"Plugin Name: SWS Gallery" version 1.3.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
123 characters long description:
A plugin which Create a galley, the gallery show in popup slider when click on a single image. use [sws_gallery] shortcode.
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
Success! There were no dangerous files found in this plugin9,069 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 978 | 75 | 8,533 |
SVG | 1 | 0 | 0 | 399 |
PHP | 1 | 3 | 18 | 127 |
JavaScript | 2 | 0 | 1 | 10 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.05 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.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 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 1.71MB with 1.26MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot2.png | 919.62KB | 265.31KB | ▼ 71.15% |
screenshot1.png | 831.01KB | 199.43KB | ▼ 76.00% |