Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼2.89ms] Passed 4 tests
Analyzing server-side resources used by Optinly - Exit Intent, Newsletter Popups, Gamification & Opt-in Forms
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 34.99 ▼5.56 |
Dashboard /wp-admin | 3.42 ▲0.11 | 46.44 ▼1.91 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 48.95 ▼1.12 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 93.92 ▼2.97 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 35.14 ▲0.95 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Optinly - Exit Intent, Newsletter Popups, Gamification & Opt-in Forms
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲59 | 14.32 ▼0.04 | 1.66 ▼0.03 | 36.82 ▼1.38 |
Dashboard /wp-admin | 2,211 ▲37 | 5.55 ▼0.06 | 80.21 ▼10.03 | 40.05 ▼0.90 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 1.98 ▲0.03 | 39.20 ▲1.68 | 35.73 ▲1.28 |
Add New Post /wp-admin/post-new.php | 1,548 ▲20 | 25.05 ▲1.93 | 632.52 ▲24.06 | 68.40 ▲10.45 |
Media Library /wp-admin/upload.php | 1,419 ▲19 | 4.18 ▲0.03 | 93.10 ▼9.47 | 42.75 ▼0.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 93% 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
Attributes that need to be fixed:
- Donate link: Please fix this invalid url: ""
optinly/optinly.php 92% from 13 tests
The main PHP script in "Optinly - Exit Intent, Newsletter Popups, Gamification & Opt-in Forms" version 1.0.18 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Domain Path: The domain path points to an invalid folder, "/languages/" does not exist
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
Everything looks great! No dangerous files found in this plugin1,208 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 192 | 352 | 1,046 |
JavaScript | 1 | 10 | 28 | 114 |
CSS | 1 | 8 | 0 | 47 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 62 | |
▷ Static methods | 3 | 4.84% |
▷ Public methods | 61 | 98.39% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.61% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected