Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- Install procedure had errors
- > Error in wp-content/plugins/wp-500px-jsgallery/wp-500px-jsgallery.class.php+108
Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/wp-500px-jsgallery/wp-500px-jsgallery.class.php:108
Stack trace:
#0 wp-content/plugins/wp-500px-jsgallery/wp-500px-jsgallery.php(48): 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: ▼4.87ms] Passed 4 tests
A check of server-side resources used by WP 500px jsGallery
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 43.01 ▲0.31 |
Dashboard /wp-admin | 3.31 ▲0.00 | 63.70 ▲8.64 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 50.51 ▼1.32 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 92.50 ▼16.47 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.42 ▼1.99 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for WP 500px jsGallery
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.33 ▲0.15 | 1.70 ▼0.30 | 43.07 ▼1.10 |
Dashboard /wp-admin | 2,198 ▲18 | 5.62 ▼0.03 | 94.94 ▼4.56 | 41.89 ▼2.56 |
Posts /wp-admin/edit.php | 2,103 ▲6 | 1.98 ▼0.00 | 34.16 ▼1.63 | 34.33 ▼4.04 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.04 ▲0.11 | 661.38 ▼17.51 | 57.51 ▼0.77 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.20 ▼0.03 | 94.70 ▼7.86 | 43.74 ▲1.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% 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 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
The following issues need your attention
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-500px-jsgallery/wp-500px-jsgallery.class.php
- > /wp-content/plugins/wp-500px-jsgallery/wp-500px-jsgallery.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-500px-jsgallery/wp-500px-jsgallery.class.php:108
- > PHP Fatal error
Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/wp-500px-jsgallery/wp-500px-jsgallery.class.php:108
- > PHP Fatal error
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
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: photos, 500px, photo, jquery, javascript...
wp-500px-jsgallery/wp-500px-jsgallery.php 92% from 13 tests
The main PHP script in "WP 500px jsGallery" version 2.1.2 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 313 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin1,650 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 225 | 258 | 899 |
PHP | 3 | 43 | 81 | 332 |
CSS | 2 | 13 | 30 | 311 |
PO File | 1 | 51 | 53 | 108 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
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 | 4 | |
▷ Named functions | 4 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin