Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/gallery-view/includes/class-gallery-view.php+353
The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence
Server metrics [RAM: ▼1.77MB] [CPU: ▼49.39ms] Passed 4 tests
An overview of server-side resources used by Gallery View
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.22 ▼1.24 | 5.65 ▼36.02 |
Dashboard /wp-admin | 2.24 ▼1.07 | 6.45 ▼43.44 |
Posts /wp-admin/edit.php | 2.24 ▼1.12 | 5.75 ▼40.44 |
Add New Post /wp-admin/post-new.php | 2.24 ▼3.65 | 6.03 ▼77.64 |
Media Library /wp-admin/upload.php | 2.24 ▼0.99 | 4.93 ▼30.97 |
Gallery /wp-admin/edit.php?page=post_gallery | 2.24 | 6.20 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Gallery View: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲87 | 13.27 ▼1.02 | 1.91 ▲0.07 | 38.82 ▼5.84 |
Dashboard /wp-admin | 2,211 ▲23 | 4.87 ▼0.06 | 113.22 ▼6.45 | 40.01 ▼3.00 |
Posts /wp-admin/edit.php | 2,100 ▲11 | 2.04 ▲0.04 | 40.61 ▲3.51 | 35.68 ▲2.50 |
Add New Post /wp-admin/post-new.php | 1,521 ▼13 | 23.35 ▲0.30 | 680.75 ▼11.33 | 47.99 ▼6.07 |
Media Library /wp-admin/upload.php | 1,399 ▲14 | 4.23 ▲0.04 | 96.23 ▼10.38 | 44.30 ▼2.65 |
Gallery /wp-admin/edit.php?page=post_gallery | 1,073 | 1.69 | 25.97 | 34.24 |
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
Please fix the following items
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/gallery-view/includes/class-gallery-view.php+353
The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/edit.php?page=post_gallery
- > Deprecated in wp-content/plugins/gallery-view/includes/class-gallery-view.php+353
The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?page=post_gallery
- > Warning in wp-content/plugins/gallery-view/includes/class-gallery-view.php+353
A non-numeric value encountered
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 errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gallery-view/includes/class-gallery-view.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: gallery, posts, admin
gallery-view/gallery-view.php Passed 13 tests
The primary PHP file in "Gallery View" version 1.2 is used by WordPress to initiate all plugin functionality
44 characters long description:
View posts in a gallery layout in the admin.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin461 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 130 | 102 | 326 |
CSS | 1 | 17 | 5 | 112 |
JavaScript | 1 | 12 | 0 | 23 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 85.00 |
▷ Minimum class complexity | 85.00 |
▷ Maximum class complexity | 85.00 |
Average method complexity | 6.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.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 | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 60.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 40.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin