Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/page-wise-gallery/page-wise-gallery.php+63
Methods with the same name as their class will not be constructors in a future version of PHP; pwg_gallery_plugin has a deprecated constructor
Server metrics [RAM: ▼1.84MB] [CPU: ▼183.65ms] Passed 4 tests
A check of server-side resources used by Page Wise Gallery
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.79 ▼1.04 | 5.58 ▼27.33 |
Dashboard /wp-admin | 1.81 ▼1.24 | 6.40 ▼27.98 |
Posts /wp-admin/edit.php | 1.81 ▼1.29 | 5.03 ▼32.05 |
Add New Post /wp-admin/post-new.php | 1.81 ▼3.62 | 5.45 ▼642.17 |
Media Library /wp-admin/upload.php | 1.81 ▼1.19 | 5.59 ▼32.41 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 2 new options
New WordPress options |
---|
pwg_deferred_admin_notices |
widget_pwg_gallery_plugin |
Browser metrics Passed 4 tests
Page Wise Gallery: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,705 ▲109 | 16.29 ▲0.75 | 11.75 ▲1.78 | 50.41 ▼1.28 |
Dashboard /wp-admin | 2,982 ▲51 | 5.87 ▼0.27 | 134.47 ▼10.37 | 116.52 ▼0.85 |
Posts /wp-admin/edit.php | 2,748 ▲12 | 2.71 ▼0.01 | 63.50 ▼1.79 | 98.82 ▲11.08 |
Add New Post /wp-admin/post-new.php | 2,063 ▲459 | 19.42 ▲0.61 | 376.19 ▼12.60 | 101.59 ▼3.21 |
Media Library /wp-admin/upload.php | 1,816 ▲9 | 5.04 ▲0.01 | 148.97 ▼5.54 | 115.16 ▲1.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/page-wise-gallery/page-wise-gallery.php+63
Methods with the same name as their class will not be constructors in a future version of PHP; pwg_gallery_plugin has a deprecated constructor
- Zombie WordPress options detected upon uninstall: 2 options
- widget_pwg_gallery_plugin
- pwg_deferred_admin_notices
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/page-wise-gallery/page-wise-gallery.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: Screenshot #1 (screenshot-1 shows the admin widget area section) image missing
page-wise-gallery/page-wise-gallery.php Passed 13 tests
The entry point to "Page Wise Gallery" version 1.0 is a PHP file that has certain tags in its header comment area
38 characters long description:
Provides unique gallery for each page.
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
No dangerous file extensions were detected140 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 20 | 20 | 113 |
PO File | 1 | 2 | 2 | 20 |
CSS | 1 | 0 | 0 | 7 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin