Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/is-circular-photo-gallery/wp-iscircularphoto.php+32
Methods with the same name as their class will not be constructors in a future version of PHP; ISCPGallery has a deprecated constructor
Server metrics [RAM: ▼1.71MB] [CPU: ▼49.83ms] Passed 4 tests
Server-side resources used by IS Circular Photo Gallery
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.28 ▼1.19 | 5.63 ▼35.75 |
Dashboard /wp-admin | 2.30 ▼1.01 | 8.99 ▼39.04 |
Posts /wp-admin/edit.php | 2.30 ▼1.06 | 7.34 ▼43.81 |
Add New Post /wp-admin/post-new.php | 2.30 ▼3.59 | 6.18 ▼80.71 |
Media Library /wp-admin/upload.php | 2.30 ▼0.93 | 5.86 ▼29.52 |
WP-IS Circular Photo Gallery /wp-admin/options-general.php?page=wpISCircularPhoto | 2.30 | 5.99 |
Server storage [IO: ▲0.89MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for IS Circular Photo Gallery
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,918 ▲161 | 13.95 ▼0.42 | 5.79 ▲3.78 | 42.17 ▼6.20 |
Dashboard /wp-admin | 2,212 ▲24 | 5.86 ▼0.02 | 106.99 ▼9.66 | 44.26 ▼0.24 |
Posts /wp-admin/edit.php | 2,095 ▲3 | 1.99 ▼0.03 | 40.55 ▲3.61 | 34.69 ▼1.62 |
Add New Post /wp-admin/post-new.php | 1,533 ▲11 | 23.34 ▲0.21 | 663.70 ▼20.48 | 52.81 ▼9.91 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.23 ▼0.00 | 99.78 ▼1.34 | 41.47 ▼2.08 |
WP-IS Circular Photo Gallery /wp-admin/options-general.php?page=wpISCircularPhoto | 1,173 | 2.06 | 22.73 | 34.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/is-circular-photo-gallery/wp-iscircularphoto.php+32
Methods with the same name as their class will not be constructors in a future version of PHP; ISCPGallery has a deprecated constructor
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=wpISCircularPhoto
- > Deprecated in wp-content/plugins/is-circular-photo-gallery/wp-iscircularphoto.php+32
Methods with the same name as their class will not be constructors in a future version of PHP; ISCPGallery has a deprecated constructor
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/is-circular-photo-gallery/wp-iscircularphoto.php:54
- > PHP Fatal error
Uncaught Error: Call to undefined function delete_option() in wp-content/plugins/is-circular-photo-gallery/uninstall.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: Add images for these screenshots: #1 (IS Circular Photo Gallery, captions enabled), #2 (IS Circular Photo Gallery, captions disabled), #3 (Choose the options you need), #4 (IS Circular Photo Gallery, Large picture width = Container width CSS (640 px); Large picture height = Container height (480px); captions enabled.)
- Tags: There are too many tags (17 tag instead of maximum 10)
is-circular-photo-gallery/wp-iscircularphoto.php 92% from 13 tests
Analyzing the main PHP file in "IS Circular Photo Gallery" version 1.9
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("is-circular-photo-gallery.php" instead of "wp-iscircularphoto.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected1,840 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 402 | 143 | 1,069 |
PHP | 2 | 151 | 160 | 633 |
CSS | 1 | 19 | 3 | 138 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 80.00 |
▷ Minimum class complexity | 80.00 |
▷ Maximum class complexity | 80.00 |
Average method complexity | 7.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.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 | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.79MB with 0.46MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/sliderblack.png | 0.24KB | 0.13KB | ▼ 47.77% |
screenshot-2.png | 161.31KB | 54.67KB | ▼ 66.11% |
screenshot-4.png | 443.98KB | 165.50KB | ▼ 62.72% |
img/slider.png | 0.24KB | 0.13KB | ▼ 48.40% |
screenshot-1.png | 155.91KB | 52.87KB | ▼ 66.09% |