Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/section-page/owc-section-page.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; Owc_section_page has a deprecated constructor
Server metrics [RAM: ▲0.02MB] [CPU: ▼10.16ms] Passed 4 tests
This is a short check of server-side resources used by Section Page
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.62 ▼4.69 |
Dashboard /wp-admin | 3.32 ▲0.02 | 48.22 ▼2.50 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 52.17 ▼2.23 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 95.59 ▼30.89 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 34.61 ▼2.55 |
Section Page /wp-admin/options-general.php?page=section-page | 3.27 | 31.06 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
owc_section_pageAdminOptions |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Section Page
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,939 ▲204 | 13.67 ▼0.94 | 9.46 ▲7.68 | 43.88 ▲4.56 |
Dashboard /wp-admin | 2,210 ▲24 | 4.83 ▼1.09 | 122.63 ▼12.10 | 38.07 ▼15.22 |
Posts /wp-admin/edit.php | 2,096 ▲4 | 2.03 ▲0.02 | 47.47 ▼9.93 | 35.20 ▼8.68 |
Add New Post /wp-admin/post-new.php | 1,517 ▲3 | 17.48 ▼0.10 | 663.81 ▼63.48 | 55.78 ▲0.81 |
Media Library /wp-admin/upload.php | 1,383 ▼8 | 4.21 ▲0.03 | 108.07 ▲3.25 | 42.46 ▲0.02 |
Section Page /wp-admin/options-general.php?page=section-page | 1,139 | 2.15 | 32.53 | 39.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=section-page
- > 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=section-page
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 0% from 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
Please fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/section-page/assets/dynamic.js.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/section-page/owc-section-page-admin.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/section-page/owc-section-page.php:155
- > PHP Fatal error
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 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Donate link: Invalid URI found ("")
section-page/owc-section-page.php 92% from 13 tests
The entry point to "Section Page" version 1.0.2 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("section-page.php" instead of "owc-section-page.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin5,577 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 568 | 459 | 5,146 |
PHP | 3 | 25 | 22 | 222 |
CSS | 2 | 30 | 21 | 209 |
PHP code Passed 2 tests
A short review of 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.27 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
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.png | 1.04KB | 0.16KB | ▼ 84.62% |