Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼6.93ms] Passed 4 tests
An overview of server-side resources used by Agreement
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.57 ▼2.84 |
Dashboard /wp-admin | 3.33 ▲0.03 | 46.43 ▼4.46 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 47.66 ▼1.02 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 84.34 ▼19.39 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 39.22 ▲2.97 |
Agreement /wp-admin/options-general.php?page=agreement-setting-admin | 3.19 | 28.79 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Agreement
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,931 ▲174 | 14.01 ▼0.57 | 5.53 ▲3.48 | 40.23 ▼4.39 |
Dashboard /wp-admin | 2,210 ▲19 | 5.85 ▼0.04 | 102.95 ▼0.61 | 39.20 ▼3.70 |
Posts /wp-admin/edit.php | 2,093 ▲25 | 2.04 ▲0.02 | 39.67 ▲5.30 | 35.01 ▲0.71 |
Add New Post /wp-admin/post-new.php | 1,531 ▼11 | 18.55 ▲0.23 | 593.32 ▼12.56 | 50.42 ▼0.17 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.25 ▲0.08 | 97.45 ▲3.19 | 40.91 ▼0.39 |
Agreement /wp-admin/options-general.php?page=agreement-setting-admin | 802 | 2.02 | 27.18 | 29.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=agreement-setting-admin
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=agreement-setting-admin
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Screenshots: These screenshots do not have images: #1 (Add id in media file link.), #2 (Change pop-up text in admin panel.), #3 (How it looks like in front end. UI may be differ as per your template.)
agreement/agreement.php Passed 13 tests
"Agreement" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
121 characters long description:
The Agreement plugin helps to create pop-up licence agreement or term to use before download any thing from post or page.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin147 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 13 | 29 | 90 |
CSS | 1 | 0 | 0 | 27 |
JavaScript | 1 | 2 | 5 | 22 |
HTML | 1 | 2 | 0 | 8 |
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.16 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 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 | 0 | |
▷ Global constants | 0 | 0.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
3 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 35.04KB | 12.95KB | ▼ 63.03% |
screenshot-3.png | 29.48KB | 11.90KB | ▼ 59.62% |
screenshot-1.png | 11.38KB | 7.22KB | ▼ 36.58% |