Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- This plugin did not install gracefully
- > Error in wp-content/plugins/wp-art-gallery/wp-art-gallery.class.php+99
Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/wp-art-gallery/wp-art-gallery.class.php:99
Stack trace:
#0 wp-content/plugins/wp-art-gallery/wp-art-gallery.php(49): include_once()
#1 wp-admin/includes/plugin.php(2318): include_once('/var/www/wordpr...')
#2 wp-admin/includes/plugin.php(663): plugin_sandbox_scrape()
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.05ms] Passed 4 tests
Analyzing server-side resources used by WP Art Gallery
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 33.13 ▼5.19 |
Dashboard /wp-admin | 3.31 ▲0.00 | 43.64 ▼3.28 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 42.42 ▼2.29 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 77.62 ▼13.43 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.61 ▲1.11 |
Server storage [IO: ▲0.07MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Art Gallery
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.34 ▼0.02 | 1.55 ▼0.50 | 38.97 ▼1.95 |
Dashboard /wp-admin | 2,198 ▲20 | 5.56 ▼0.04 | 81.13 ▼16.94 | 36.16 ▼6.08 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 1.97 ▲0.01 | 34.46 ▼0.96 | 29.68 ▼7.56 |
Add New Post /wp-admin/post-new.php | 1,532 ▼5 | 23.08 ▲5.00 | 680.76 ▲72.83 | 51.77 ▼14.55 |
Media Library /wp-admin/upload.php | 1,391 ▼12 | 4.19 ▲0.01 | 96.26 ▲3.72 | 40.24 ▼0.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
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
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wp-art-gallery/wp-art-gallery.php
- > /wp-content/plugins/wp-art-gallery/wp-art-gallery.class.php
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/wp-art-gallery/wp-art-gallery.class.php:99
- > PHP Fatal error
Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/wp-art-gallery/wp-art-gallery.class.php:99
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: immersive, art, jquery, photo, javascript...
wp-art-gallery/wp-art-gallery.php 92% from 13 tests
"WP Art Gallery" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Domain Path: The domain path is invalid: folder "/lang" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected1,371 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 182 | 125 | 756 |
CSS | 2 | 30 | 3 | 319 |
PHP | 4 | 65 | 85 | 295 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
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 | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/icons.png | 0.71KB | 0.43KB | ▼ 39.64% |
img/hide.png | 0.47KB | 0.45KB | ▼ 4.97% |