Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼292.06ms] Passed 4 tests
A check of server-side resources used by Alobaidi Gallery
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.13 | 50.89 ▲2.47 |
Dashboard /wp-admin | 3.48 ▲0.08 | 34.78 ▲1.71 |
Posts /wp-admin/edit.php | 3.72 ▲0.08 | 38.21 ▲1.87 |
Add New Post /wp-admin/post-new.php | 6.96 ▼0.01 | 94.31 ▼1,169.76 |
Media Library /wp-admin/upload.php | 3.37 ▲0.07 | 25.73 ▼2.06 |
Alobaidi Gallery /wp-admin/plugins.php?page=alobaidi_gallery_settings | 3.34 | 27.29 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 56 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Alobaidi Gallery
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,800 ▲56 | 16.18 ▲0.53 | 5.99 ▼0.37 | 3.31 ▲1.24 |
Dashboard /wp-admin | 2,897 ▲46 | 6.11 ▼0.07 | 119.06 ▼33.58 | 156.96 ▼4.93 |
Posts /wp-admin/edit.php | 2,696 ▲11 | 3.24 ▼0.00 | 62.48 ▼0.04 | 146.24 ▲2.20 |
Add New Post /wp-admin/post-new.php | 1,776 ▲108 | 21.70 ▲3.55 | 465.46 ▲81.52 | 160.09 ▼0.37 |
Media Library /wp-admin/upload.php | 1,703 ▲5 | 5.49 ▼0.04 | 139.98 ▼5.57 | 189.04 ▼2.47 |
Alobaidi Gallery /wp-admin/plugins.php?page=alobaidi_gallery_settings | 1,314 | 2.37 | 53.16 | 123.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/alobaidi-gallery/alobaidi-gallery.php
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/alobaidi-gallery/template/gallery_page.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/alobaidi-gallery/settings.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_query_var() in wp-content/plugins/alobaidi-gallery/template/loop.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Tags: You are using too many tags: 25 tag instead of maximum 10
alobaidi-gallery/alobaidi-gallery.php 92% from 13 tests
The main PHP file in "Alobaidi Gallery" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 166 characters long)
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 detected2,488 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 336 | 152 | 1,000 |
CSS | 11 | 169 | 62 | 980 |
PHP | 6 | 148 | 33 | 483 |
SVG | 1 | 0 | 0 | 25 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 23 | |
▷ Named functions | 23 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
19 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
template/fancy/css/fancy_title_over.png | 0.07KB | 0.09KB | 0.00% |
template/fancy/css/fancy_nav_left.png | 1.41KB | 1.64KB | 0.00% |
template/fancy/css/fancy_title_right.png | 0.49KB | 0.82KB | 0.00% |
template/fancy/css/fancy_shadow_n.png | 0.10KB | 0.19KB | 0.00% |
template/fancy/css/fancy_shadow_sw.png | 0.33KB | 0.48KB | 0.00% |