Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.09ms] Passed 4 tests
A check of server-side resources used by PhotoPress - Sideways Gallery
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.90 ▲1.05 |
Dashboard /wp-admin | 3.31 ▲0.01 | 45.14 ▲0.09 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.81 ▲0.32 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 89.50 ▼17.83 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.51 ▲1.66 |
Server storage [IO: ▲0.56MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for PhotoPress - Sideways Gallery
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲64 | 13.25 ▼1.55 | 1.72 ▼0.16 | 44.12 ▲0.86 |
Dashboard /wp-admin | 2,219 ▲31 | 4.85 ▼0.04 | 112.43 ▲2.19 | 41.22 ▲2.11 |
Posts /wp-admin/edit.php | 2,102 ▲13 | 2.03 ▲0.05 | 39.38 ▲3.58 | 36.03 ▲0.54 |
Add New Post /wp-admin/post-new.php | 1,557 ▲26 | 18.15 ▼5.27 | 619.17 ▲26.83 | 65.38 ▲16.37 |
Media Library /wp-admin/upload.php | 1,401 ▲13 | 4.20 ▲0.00 | 94.90 ▼2.83 | 41.43 ▼0.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
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
Even though everything seems fine, this is not 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
Please take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/photopress-sideways-gallery/photopress-sideways-gallery.php:269
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: images, slider, photos, gallery, sideways...
photopress-sideways-gallery/photopress-sideways-gallery.php Passed 13 tests
This is the main PHP file of "PhotoPress - Sideways Gallery" version 1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
77 characters long description:
Adds a sideways scrolling gallery presentation to the core gallery shortcode.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected4,220 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 16 | 77 | 3,514 |
SVG | 1 | 0 | 0 | 399 |
JavaScript | 2 | 63 | 50 | 177 |
PHP | 1 | 66 | 77 | 130 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 5 | |
▷ Static methods | 5 | 100.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected