Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼0.34ms] Passed 4 tests
Analyzing server-side resources used by Alobaidi Gallery
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 41.44 ▲1.29 |
Dashboard /wp-admin | 3.38 ▲0.08 | 57.28 ▲9.75 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 48.57 ▼5.15 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 104.89 ▲4.61 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 36.17 ▼2.11 |
Alobaidi Gallery /wp-admin/plugins.php?page=alobaidi_gallery_settings | 3.27 | 37.85 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 56 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Alobaidi Gallery
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 14.69 ▲0.29 | 1.95 ▲0.20 | 43.70 ▼0.47 |
Dashboard /wp-admin | 2,199 ▲28 | 5.61 ▼0.11 | 95.42 ▲2.07 | 42.08 ▲1.51 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.00 ▼0.03 | 39.00 ▼6.82 | 32.23 ▼10.30 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.63 ▲0.43 | 642.22 ▼18.13 | 55.90 ▼0.74 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.25 ▲0.15 | 101.69 ▼13.89 | 44.34 ▼3.14 |
Alobaidi Gallery /wp-admin/plugins.php?page=alobaidi_gallery_settings | 1,010 | 2.03 | 26.68 | 28.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
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
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/alobaidi-gallery/alobaidi-gallery.php
- 3× 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/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
Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/alobaidi-gallery/template/gallery_page.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
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
Attributes that require attention:
- Tags: Too many tags (25 tag instead of maximum 10); only the first 5 tags are used in your directory listing
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
Please make the necessary changes and fix the following:
- 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 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin2,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
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
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
PNG files should be compressed to save space and 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_shadow_n.png | 0.10KB | 0.19KB | 0.00% |
template/fancy/css/fancy_nav_left.png | 1.41KB | 1.64KB | 0.00% |
template/fancy/css/fancy_shadow_e.png | 0.10KB | 0.18KB | 0.00% |
template/fancy/css/fancy_shadow_ne.png | 0.34KB | 0.48KB | 0.00% |
template/fancy/css/fancy_shadow_s.png | 0.11KB | 0.19KB | 0.00% |