Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- The plugin cannot be installed
- > Notice in wp-content/plugins/opaque-teaser/opaque-teaser.php+32
Trying to access array offset on value of type null
Server metrics [RAM: ▼1.89MB] [CPU: ▼51.05ms] Passed 4 tests
An overview of server-side resources used by Opaque Teaser
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.10 ▼1.37 | 9.61 ▼29.50 |
Dashboard /wp-admin | 2.12 ▼1.19 | 6.98 ▼44.01 |
Posts /wp-admin/edit.php | 2.12 ▼1.24 | 6.51 ▼42.55 |
Add New Post /wp-admin/post-new.php | 2.12 ▼3.77 | 6.42 ▼88.13 |
Media Library /wp-admin/upload.php | 2.12 ▼1.11 | 6.69 ▼26.91 |
Opaque Teaser /wp-admin/options-general.php?page=op_settings | 2.12 | 5.79 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Opaque Teaser
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.17 ▼1.19 | 1.65 ▲0.02 | 38.92 ▼2.28 |
Dashboard /wp-admin | 2,210 ▲22 | 5.83 ▲0.02 | 99.23 ▼7.22 | 37.43 ▼6.47 |
Posts /wp-admin/edit.php | 2,072 ▼6 | 2.07 ▲0.08 | 33.46 ▼5.77 | 30.45 ▼4.10 |
Add New Post /wp-admin/post-new.php | 1,545 ▲12 | 17.78 ▼5.31 | 603.41 ▲6.34 | 57.05 ▼24.50 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.16 ▼0.12 | 96.48 ▼7.98 | 41.14 ▼2.22 |
Opaque Teaser /wp-admin/options-general.php?page=op_settings | 932 | 1.72 | 25.13 | 26.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/opaque-teaser/opaque-teaser.php+32
Trying to access array offset on value of type null
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=op_settings
- > Notice in wp-content/plugins/opaque-teaser/opaque-teaser.php+32
Trying to access array offset on value of type null
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 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
7 plugin tags: preview, private, teaser, under construction, coming soon...
opaque-teaser/opaque-teaser.php 92% from 13 tests
Analyzing the main PHP file in "Opaque Teaser" version 0.2.2
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 142 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin309 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 108 | 102 | 255 |
CSS | 1 | 11 | 3 | 53 |
JavaScript | 1 | 0 | 3 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 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 | 2 | |
▷ Global constants | 2 | 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