Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.06ms] Passed 4 tests
A check of server-side resources used by Post Categories Gallery
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.43 ▼0.12 |
Dashboard /wp-admin | 3.31 ▲0.00 | 50.15 ▲4.81 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.89 ▼3.27 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 84.93 ▼7.17 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.46 ▼1.66 |
Server storage [IO: ▲1.09MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Post Categories Gallery
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲67 | 13.58 ▼0.80 | 1.79 ▲0.17 | 45.51 ▲0.93 |
Dashboard /wp-admin | 2,206 ▲15 | 5.80 ▼0.11 | 100.08 ▼4.49 | 39.43 ▼3.74 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.00 ▼0.04 | 37.64 ▲0.14 | 32.36 ▼1.48 |
Add New Post /wp-admin/post-new.php | 1,542 ▲21 | 18.58 ▼4.46 | 653.50 ▼25.93 | 57.77 ▼1.15 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.18 ▼0.01 | 96.53 ▲0.65 | 43.48 ▼3.57 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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 trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'Walker_Category' not found in wp-content/plugins/post-category-gallery/horcatbar.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Screenshots: Please add images for these screenshots: #1 (Green color scheme. `/trunk/screenshot-1.png`), #2 (Blue color scheme. `/trunk/screenshot-2.png`), #3 (Brown color scheme. `/trunk/screenshot-3.png`)
post-category-gallery/horcatbar.php 92% from 13 tests
The principal PHP file in "Post Categories Gallery" v. 1.0.0 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("post-category-gallery.php" instead of "horcatbar.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected314 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 24 | 1 | 241 |
PHP | 1 | 25 | 35 | 73 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 6.00 |
▷ Minimum method complexity | 6.00 |
▷ Maximum method complexity | 6.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 | 1 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 1 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 1.07MB with 0.63MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 375.18KB | 124.16KB | ▼ 66.91% |
screenshot-1.png | 359.77KB | 123.90KB | ▼ 65.56% |
not_available.png | 3.21KB | 1.99KB | ▼ 38.13% |
screenshot-3.png | 357.20KB | 123.70KB | ▼ 65.37% |