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.08MB] [CPU: ▼4.60ms] Passed 4 tests
Analyzing server-side resources used by Allow2
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 39.29 ▼2.83 |
Dashboard /wp-admin | 3.39 ▲0.08 | 44.04 ▼5.46 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 43.96 ▼3.04 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 85.45 ▼7.07 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 36.58 ▲1.41 |
Allow2 /wp-admin/options-general.php?page=Allow2 | 3.33 | 33.99 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Allow2: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 14.73 ▲0.35 | 1.83 ▲0.04 | 39.21 ▼4.40 |
Dashboard /wp-admin | 2,210 ▲25 | 4.80 ▼0.22 | 95.39 ▼5.96 | 38.68 ▼10.62 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.04 ▲0.07 | 34.65 ▼7.06 | 31.69 ▼2.89 |
Add New Post /wp-admin/post-new.php | 1,517 ▼2 | 17.67 ▼5.45 | 681.01 ▲12.19 | 54.59 ▲3.65 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.18 ▼0.10 | 104.30 ▲4.26 | 46.54 ▼0.08 |
Allow2 /wp-admin/options-general.php?page=Allow2 | 919 | 1.87 | 25.45 | 25.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=Allow2
- > Notice in wp-content/plugins/allow2/allow2_admin.php+15
Undefined index: allow2_setup
- > GET request to /wp-admin/options-general.php?page=Allow2
- > Notice in wp-content/plugins/allow2/allow2_admin.php+64
Undefined index: allow2_disconnect
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 just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Tags: You are using too many tags: 20 tag instead of maximum 10
- Donate link: Invalid url: ""
allow2/allow2.php Passed 13 tests
The main file in "Allow2" v. 1.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
127 characters long description:
The Allow2 WordPress plugin is a simple plug and play drop in component that empowers your site to offer full parental freedom.
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 plugin868 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 110 | 163 | 697 |
JavaScript | 3 | 14 | 70 | 151 |
CSS | 1 | 1 | 0 | 17 |
SVG | 1 | 0 | 1 | 3 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
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 | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-30x30.png | 3.16KB | 1.93KB | ▼ 38.88% |