Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.44MB] [CPU: ▼3.33ms] Passed 4 tests
A check of server-side resources used by My WP Glossary
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.86 ▲0.39 | 38.12 ▼2.77 |
Dashboard /wp-admin | 3.78 ▲0.47 | 46.89 ▲0.61 |
Posts /wp-admin/edit.php | 3.83 ▲0.47 | 51.70 ▲4.29 |
Add New Post /wp-admin/post-new.php | 6.37 ▲0.48 | 86.72 ▼15.45 |
Media Library /wp-admin/upload.php | 3.64 ▲0.41 | 38.44 ▲5.42 |
All definitions /wp-admin/edit.php?post_type=mywpglossary | 3.75 | 41.37 |
Add new /wp-admin/post-new.php?post_type=mywpglossary | 3.56 | 35.98 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for My WP Glossary
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲84 | 13.22 ▼1.18 | 1.70 ▼0.16 | 43.25 ▼2.56 |
Dashboard /wp-admin | 2,230 ▲45 | 5.76 ▲0.84 | 100.30 ▼14.75 | 39.85 ▼2.68 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 2.00 ▼0.06 | 35.87 ▼4.58 | 33.84 ▼6.89 |
Add New Post /wp-admin/post-new.php | 6,373 ▲4,854 | 27.67 ▲4.27 | 978.37 ▲303.09 | 55.48 ▲0.22 |
Media Library /wp-admin/upload.php | 1,412 ▲24 | 4.22 ▼0.00 | 97.87 ▼2.79 | 42.79 ▼0.18 |
All definitions /wp-admin/edit.php?post_type=mywpglossary | 1,115 | 1.97 | 34.18 | 31.57 |
Add new /wp-admin/post-new.php?post_type=mywpglossary | 1,623 | 16.64 | 856.63 | 32.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- > GET request to /wp-admin/post-new.php?post_type=mywpglossary
- > Notice in wp-content/plugins/my-wp-glossary/my-wp-glossary.php+432
Trying to get property 'ID' of non-object
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
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/my-wp-glossary/my-wp-glossary.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
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
These attributes need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (Glossary definition items.), #2 (Glossary Gutenberg block in the editor.), #3 (Glossary page on Twenty Twenty-One bundled theme.), #4 (Glossary page on Twenty Twenty bundled theme.), #5 (Definition are linked to your Glossary Page each time they appear on your website’s Posts.)
my-wp-glossary/my-wp-glossary.php 85% from 13 tests
The principal PHP file in "My WP Glossary" v. 0.6.3c... is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Requires PHP: Required version must be the same as the one declared in readme.txt ("5.6" instead of "7.0")
- Version: Plugin version number should only contain digits separated by dots (ex. "1.0.3" instead of "0.6.3c...")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin2,503 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 423 | 413 | 2,402 |
JavaScript | 5 | 9 | 38 | 100 |
CSS | 2 | 1 | 2 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 193.50 |
▷ Minimum class complexity | 138.00 |
▷ Maximum class complexity | 249.00 |
Average method complexity | 5.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 66.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 90 | |
▷ Static methods | 1 | 1.11% |
▷ Public methods | 75 | 83.33% |
▷ Protected methods | 15 | 16.67% |
▷ Private methods | 0 | 0.00% |
Functions | 39 | |
▷ Named functions | 32 | 82.05% |
▷ Anonymous functions | 7 | 17.95% |
Constants | 24 | |
▷ Global constants | 24 | 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
PNG images were not found in this plugin