Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼1.64MB] [CPU: ▼192.29ms] Passed 4 tests
This is a short check of server-side resources used by RokGallery Pages List
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.98 ▼0.74 | 9.85 ▼9.91 |
Dashboard /wp-admin | 2.01 ▼1.05 | 15.02 ▼37.61 |
Posts /wp-admin/edit.php | 2.01 ▼1.10 | 9.37 ▼37.53 |
Add New Post /wp-admin/post-new.php | 2.01 ▼3.42 | 10.17 ▼662.32 |
Media Library /wp-admin/upload.php | 2.01 ▼1.00 | 9.71 ▼31.68 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_rokgalleries_list |
Browser metrics Passed 4 tests
Checking browser requirements for RokGallery Pages List
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 15.94 ▼0.20 | 12.12 ▲1.38 | 50.93 ▼6.09 |
Dashboard /wp-admin | 2,973 ▲36 | 5.91 ▼0.04 | 141.11 ▼10.25 | 118.22 ▲2.05 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.72 ▲0.02 | 68.98 ▼2.66 | 95.30 ▲1.36 |
Add New Post /wp-admin/post-new.php | 1,683 ▲7 | 18.73 ▼0.14 | 403.53 ▲6.03 | 112.21 ▲2.89 |
Media Library /wp-admin/upload.php | 1,810 ▼0 | 5.03 ▼0.01 | 156.47 ▼1.10 | 117.29 ▼7.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-includes/class-wp-hook.php+303
Non-static method RokGallery_Pages_Lists::register() should not be called statically
- Zombie WordPress options detected upon uninstall: 1 option
- widget_rokgalleries_list
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/rokgallery-pages-list/views/widget.php
- 12× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined variable: instance in wp-content/plugins/rokgallery-pages-list/views/widget.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_head() in wp-content/plugins/rokgallery-pages-list/views/rokbox.php:4
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/rokgallery-pages-list/init.php:23
- > PHP Notice
Undefined variable: title in wp-content/plugins/rokgallery-pages-list/views/widget.php on line 5
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/rokgallery-pages-list/views/widget.php on line 8
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/rokgallery-pages-list/views/widget.php on line 27
- > PHP Notice
Undefined variable: before_widget in wp-content/plugins/rokgallery-pages-list/views/widget.php on line 3
- > PHP Notice
Undefined variable: after_widget in wp-content/plugins/rokgallery-pages-list/views/widget.php on line 24
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/rokgallery-pages-list/views/form.php:2
- > PHP Notice
Undefined variable: galleries in wp-content/plugins/rokgallery-pages-list/views/widget.php on line 8
- > PHP Notice
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 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: widget, rokgallery, gallery
rokgallery-pages-list/init.php 92% from 13 tests
The main PHP script in "RokGallery Pages List" version 0.1.1 is automatically included on every request by WordPress
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("rokgallery-pages-list.php" instead of "init.php")
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
Everything looks great! No dangerous files found in this plugin195 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 39 | 19 | 189 |
JavaScript | 1 | 1 | 0 | 6 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 2 | 20.00% |
▷ Public methods | 10 | 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 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin