Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.56ms] Passed 4 tests
Server-side resources used by OGPanic
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.33 ▼2.41 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.70 ▼2.00 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 40.69 ▼10.22 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 84.47 ▼7.61 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.97 ▼0.99 |
OGPanic /wp-admin/options-general.php?page=ogpanic/admin/partials/og-panic-admin-display.php | 3.00 | 21.43 |
Server storage [IO: ▲0.89MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 30 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
ogpanic_activated |
Browser metrics Passed 4 tests
An overview of browser requirements for OGPanic
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.26 ▲0.04 | 1.75 ▲0.19 | 42.74 ▼4.19 |
Dashboard /wp-admin | 2,192 ▲18 | 5.53 ▼0.02 | 83.29 ▼3.02 | 35.45 ▼3.72 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.00 ▲0.02 | 37.33 ▲2.35 | 35.26 ▼0.56 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.17 ▲0.31 | 699.27 ▲24.43 | 58.75 ▲8.19 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.28 ▲0.10 | 95.56 ▼20.18 | 44.08 ▼3.60 |
OGPanic /wp-admin/options-general.php?page=ogpanic/admin/partials/og-panic-admin-display.php | 28 | 0.42 | 0.09 | 3.57 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- ogpanic_activated
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests 25% from 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 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/ogpanic/public/partials/og-panic-public-display.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/ogpanic/admin/partials/og-panic-admin-display.php:18
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- > GET request to /wp-admin/options-general.php?page=ogpanic/admin/partials/og-panic-admin-display.php
- > Network (severe)
wp-admin/options-general.php?page=ogpanic/admin/partials/og-panic-admin-display.php - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 81% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Tags: Too many tags (21 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: Screenshot #1 (Choose an theme and you are ready to go.) image required
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== ogpanic ===
)
ogpanic/og-panic.php 85% from 13 tests
Analyzing the main PHP file in "OGPanic" version 1.0.14
Please make the necessary changes and fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("ogpanic.php" instead of "og-panic.php")
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
Everything looks great! No dangerous files found in this plugin919 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 139 | 517 | 561 |
JavaScript | 3 | 41 | 71 | 207 |
PO File | 2 | 46 | 52 | 122 |
CSS | 1 | 4 | 4 | 27 |
JSON | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 6.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 1.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 3 | 8.33% |
▷ Public methods | 27 | 75.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 25.00% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.81MB with 0.64MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 826.47KB | 167.93KB | ▼ 79.68% |