Benchmarks
Plugin footprint 40% 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
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method Revostock_Gallery::activate() should not be called statically
Server metrics [RAM: ▲0.20MB] [CPU: ▼5.28ms] Passed 4 tests
A check of server-side resources used by RevoStock Media Gallery
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.21 | 37.99 ▲2.39 |
Dashboard /wp-admin | 3.52 ▲0.17 | 45.29 ▼16.88 |
Posts /wp-admin/edit.php | 3.63 ▲0.27 | 43.84 ▲3.95 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 93.80 ▼10.56 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 37.75 ▲6.97 |
RevoStock Gallery /wp-admin/options-general.php?page=revostock-gallery | 3.41 | 29.92 |
Server storage [IO: ▲2.36MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 29 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
revostock_gallery_cache |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
revostock_gallery_settings |
Browser metrics Passed 4 tests
This is an overview of browser requirements for RevoStock Media Gallery
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲39 | 14.51 ▼0.01 | 1.83 ▲0.15 | 38.87 ▼11.12 |
Dashboard /wp-admin | 2,196 ▲25 | 5.53 ▼0.15 | 82.05 ▼16.80 | 37.86 ▼5.42 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.94 ▼0.00 | 36.12 ▼5.16 | 35.49 ▼2.87 |
Add New Post /wp-admin/post-new.php | 1,535 ▲8 | 23.27 ▲0.37 | 610.07 ▲40.53 | 60.44 ▲9.67 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.22 ▲0.03 | 95.88 ▼2.38 | 39.26 ▼2.57 |
RevoStock Gallery /wp-admin/options-general.php?page=revostock-gallery | 938 | 2.04 | 24.51 | 72.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method Revostock_Gallery::deactivate() should not be called statically
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% 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 50% 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 fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/revostock-gallery/revostock-gallery.php on line 43
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/revostock-gallery/revostock-gallery.php:71
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots do not have images: #1 (First, make sure you have your RevoStock user name and password, AND active API access), #2 (Welcome page & explanation of shortcode attributes), #3 (Set shortcode default attributes), #4 (Use the editor button to insert the shortcode into your posts and pages), #5 (Gallery display on page)
revostock-gallery/revostock-gallery.php Passed 13 tests
Analyzing the main PHP file in "RevoStock Media Gallery" version 1.1.1
69 characters long description:
Display a gallery of RevoStock.com media files available for purchase
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
Good job! No executable or dangerous file extensions detected1,710 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 148 | 481 | 917 |
CSS | 6 | 52 | 3 | 513 |
JavaScript | 2 | 12 | 7 | 280 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 138.00 |
▷ Minimum class complexity | 138.00 |
▷ Maximum class complexity | 138.00 |
Average method complexity | 4.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.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 | 42 | |
▷ Static methods | 40 | 95.24% |
▷ Public methods | 42 | 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 | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
16 PNG files occupy 2.27MB with 1.58MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/applemotion.png | 34.12KB | 1.50KB | ▼ 95.59% |
assets/banner-772x250.png | 105.91KB | 47.57KB | ▼ 55.08% |
images/revostock-logo-full.png | 10.34KB | 5.32KB | ▼ 48.54% |
images/ae.png | 34.08KB | 1.41KB | ▼ 95.86% |
images/share-the-revo.png | 6.67KB | 3.17KB | ▼ 52.45% |