Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/gallery-slice/gallery-slice.php+23
Function create_function() is deprecated
Server metrics [RAM: ▼1.75MB] [CPU: ▼51.04ms] Passed 4 tests
An overview of server-side resources used by Gallery Slice
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.24 ▼1.22 | 5.21 ▼34.50 |
Dashboard /wp-admin | 2.26 ▼1.05 | 7.65 ▼40.91 |
Posts /wp-admin/edit.php | 2.26 ▼1.10 | 8.03 ▼35.41 |
Add New Post /wp-admin/post-new.php | 2.26 ▼3.63 | 6.29 ▼93.33 |
Media Library /wp-admin/upload.php | 2.26 ▼0.97 | 7.49 ▼27.51 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 11 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
gallery_slice_version |
gallery_slice_link2full |
db_upgraded |
gallery_slice_waiting_img |
gallery_slice_downto |
widget_recent-comments |
gallery_slice_threshold |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
Gallery Slice: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.24 ▼1.19 | 6.21 ▲4.34 | 44.84 ▲1.56 |
Dashboard /wp-admin | 2,203 ▲15 | 5.85 ▼0.04 | 98.10 ▼3.00 | 38.55 ▼1.97 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.06 ▲0.03 | 41.52 ▲6.95 | 35.41 ▲3.34 |
Add New Post /wp-admin/post-new.php | 6,490 ▲4,970 | 20.23 ▼3.14 | 924.86 ▲231.04 | 66.42 ▲11.10 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.20 ▲0.01 | 99.96 ▲4.86 | 44.02 ▲1.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/gallery-slice/gallery-slice.php+23
Function create_function() is deprecated
- This plugin does not fully uninstall, leaving 11 options in the database
- theysaidso_admin_options
- widget_recent-posts
- gallery_slice_waiting_img
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- gallery_slice_downto
- gallery_slice_link2full
- gallery_slice_threshold
- gallery_slice_version
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/gallery-slice/gallery-slice.php:395
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/gallery-slice/gallery-slice.php on line 12
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/gallery-slice/gallery-slice.php on line 12
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/gallery-slice/gallery-slice.php on line 12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: images, image, gallery, ajax
gallery-slice/gallery-slice.php Passed 13 tests
"Gallery Slice" version 1.3.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
119 characters long description:
Slices gallery to a "preview" on archive pages (date, category, tag and author based lists, usually including homepage)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin520 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 51 | 21 | 349 |
JavaScript | 4 | 16 | 14 | 135 |
PO File | 1 | 18 | 2 | 36 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 70.00 |
▷ Minimum class complexity | 70.00 |
▷ Maximum class complexity | 70.00 |
Average method complexity | 3.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.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 | 24 | |
▷ Static methods | 5 | 20.83% |
▷ Public methods | 18 | 75.00% |
▷ Protected methods | 4 | 16.67% |
▷ Private methods | 2 | 8.33% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected