Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.25MB] [CPU: ▲283.84ms] 75% from 4 tests
An overview of server-side resources used by Mosaic Gallery
The following require your attention
- Extra CPU: The extra CPU usage should be kept under 200.00ms (currently 283.84ms on /wp-admin/upload.php)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.27 | 304.24 ▲261.20 |
Dashboard /wp-admin | 3.57 ▲0.22 | 384.05 ▲320.98 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 350.71 ▲308.38 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.27 | 343.56 ▲244.79 |
Media Library /wp-admin/upload.php | 3.49 ▲0.26 | 581.54 ▲551.17 |
Server storage [IO: ▲12.70MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 31 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widgetic/secret |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Mosaic Gallery
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 5,006 ▲2,245 | 28.79 ▲14.17 | 93.72 ▲92.01 | 28.12 ▼16.32 |
Dashboard /wp-admin | 3,579 ▲1,402 | 12.57 ▲6.95 | 213.07 ▲115.21 | 72.93 ▲31.19 |
Posts /wp-admin/edit.php | 3,180 ▲1,080 | 10.44 ▲8.42 | 164.30 ▲125.90 | 37.50 ▲0.51 |
Add New Post /wp-admin/post-new.php | 2,706 ▲1,171 | 30.32 ▲12.30 | 792.40 ▲175.10 | 65.57 ▲7.30 |
Media Library /wp-admin/upload.php | 1,795 ▲398 | 12.07 ▲7.89 | 237.52 ▲145.84 | 44.33 ▲2.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widgetic/secret
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/mosaic-gallery-by-widgetic/dashboard.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mosaic-gallery-by-widgetic/block.php:110
- > PHP Notice
Undefined variable: blockPath in wp-content/plugins/mosaic-gallery-by-widgetic/block.php on line 29
- > PHP Notice
Undefined variable: widgetMeta in wp-content/plugins/mosaic-gallery-by-widgetic/block.php on line 29
- > PHP Notice
Undefined variable: blockWidgetId in wp-content/plugins/mosaic-gallery-by-widgetic/block.php on line 29
- > 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 93% 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
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 34 tag instead of maximum 10
mosaic-gallery-by-widgetic/index.php 92% from 13 tests
The principal PHP file in "Mosaic Gallery" v. 1.0.40 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("mosaic-gallery-by-widgetic.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin2,547 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 5 | 0 | 0 | 1,919 |
CSS | 3 | 74 | 58 | 432 |
PHP | 4 | 30 | 55 | 170 |
SVG | 1 | 0 | 0 | 24 |
JavaScript | 2 | 0 | 1 | 2 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
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 | 11 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 11 | 100.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
10 PNG files occupy 0.72MB with 0.28MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/widgetic_icon.png | 1.94KB | 2.03KB | 0.00% |
assets/banner-1544x500.png | 32.38KB | 10.29KB | ▼ 68.23% |
assets/custom_skin.png | 8.56KB | 3.23KB | ▼ 62.32% |
assets/screenshot-1.png | 370.29KB | 404.96KB | 0.00% |
assets/icon-128x128.png | 2.40KB | 0.89KB | ▼ 63.00% |