Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼0.08ms] Passed 4 tests
An overview of server-side resources used by WP News Photo Gallery
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 38.23 ▲1.47 |
Dashboard /wp-admin | 3.43 ▲0.13 | 44.45 ▼2.83 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 46.83 ▼0.68 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 91.06 ▲2.14 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 33.23 ▲1.73 |
Gallery Settings /wp-admin/edit.php?post_type=wpnpg&page=wpnpg-slider-page | 3.33 | 33.18 |
Add New /wp-admin/post-new.php?post_type=wpnpg | 3.47 | 45.99 |
All Items /wp-admin/edit.php?post_type=wpnpg | 3.40 | 30.38 |
Server storage [IO: ▲1.92MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_wpnpg-recent-posts |
widget_recent-comments |
widget_recent-posts |
wpnpg |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
WP News Photo Gallery: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,948 ▲187 | 13.86 ▼0.67 | 8.02 ▲6.32 | 31.56 ▼15.20 |
Dashboard /wp-admin | 2,256 ▲79 | 5.82 ▲0.29 | 87.20 ▼14.82 | 39.88 ▼4.22 |
Posts /wp-admin/edit.php | 2,160 ▲60 | 2.27 ▲0.25 | 40.82 ▲5.31 | 38.05 ▲3.55 |
Add New Post /wp-admin/post-new.php | 1,583 ▲57 | 18.45 ▼5.12 | 616.64 ▼72.58 | 45.65 ▼18.10 |
Media Library /wp-admin/upload.php | 1,461 ▲61 | 4.41 ▲0.21 | 98.26 ▼6.19 | 43.08 ▼2.24 |
Gallery Settings /wp-admin/edit.php?post_type=wpnpg&page=wpnpg-slider-page | 1,147 | 1.85 | 29.22 | 30.91 |
Add New /wp-admin/post-new.php?post_type=wpnpg | 2,340 | 7.77 | 171.86 | 63.60 |
All Items /wp-admin/edit.php?post_type=wpnpg | 1,130 | 2.21 | 35.88 | 31.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 8 options in the database
- can_compress_scripts
- db_upgraded
- widget_wpnpg-recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- wpnpg
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-news-photo-gallery/wp-news-photo-gallery.php on line 19
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-news-photo-gallery/archive-wpnpg.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-news-photo-gallery/lib/functions.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-news-photo-gallery/single-wpnpg.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wp-news-photo-gallery/wp-news-photo-gallery.php:19
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-news-photo-gallery/lib/widget.php:6
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Gallery View), #2 (Gallery Archive), #3 (Gallery Settings)
wp-news-photo-gallery/wp-news-photo-gallery.php 85% from 13 tests
This is the main PHP file of "WP News Photo Gallery" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 146 characters long)
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin3,576 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 3 | 30 | 1,735 |
JavaScript | 3 | 215 | 154 | 1,260 |
PHP | 5 | 74 | 81 | 581 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 4.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 19 | |
▷ Named functions | 19 | 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 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 1.78MB with 0.91MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 1,317.90KB | 261.05KB | ▼ 80.19% |
img/review.png | 0.64KB | 0.64KB | 0.00% |
screenshot-3.png | 18.39KB | 9.91KB | ▼ 46.10% |
screenshot-2.png | 482.94KB | 102.55KB | ▼ 78.76% |