Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼1,008.72ms] Passed 4 tests
Analyzing server-side resources used by Sections by Wesfed
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 37.94 ▼9.49 |
Dashboard /wp-admin | 3.07 ▼0.06 | 45.53 ▼2,912.10 |
Posts /wp-admin/edit.php | 3.13 ▲0.01 | 36.10 ▼12.38 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 95.06 ▼1,100.91 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 30.97 ▲0.61 |
All Sections /wp-admin/edit.php?post_type=wf_sections | 3.06 | 35.90 |
Add New /wp-admin/post-new.php?post_type=wf_sections | 3.23 | 49.76 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Sections by Wesfed
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,712 ▲237 | 15.88 ▲2.11 | 7.58 ▼1.46 | 49.98 ▲1.75 |
Dashboard /wp-admin | 2,965 ▲75 | 5.93 ▼0.03 | 142.40 ▼3.09 | 110.24 ▲2.70 |
Posts /wp-admin/edit.php | 2,741 ▲35 | 2.68 ▲0.00 | 64.57 ▼3.03 | 82.73 ▼9.18 |
Add New Post /wp-admin/post-new.php | 1,679 ▲23 | 18.31 ▲0.46 | 363.22 ▼17.25 | 111.97 ▼19.90 |
Media Library /wp-admin/upload.php | 1,751 ▼24 | 4.99 ▲0.00 | 155.57 ▲8.24 | 109.50 ▼0.65 |
All Sections /wp-admin/edit.php?post_type=wf_sections | 1,398 | 2.63 | 61.10 | 69.00 |
Add New /wp-admin/post-new.php?post_type=wf_sections | 2,805 | 8.82 | 205.92 | 128.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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 fix the following
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wf-sections/wf-sections.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wf-sections/inc/backend.php:22
- > PHP Notice
Undefined index: s in wp-content/plugins/wf-sections/image.php on line 23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: ads, sections, adsense, wesfed, text placement...
wf-sections/wf-sections.php 92% from 13 tests
This is the main PHP file of "Sections by Wesfed" version 1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Version: Use periods and digits only for your plugin's version number (ex. "1.0.3" instead of "1")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected146 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 56 | 95 | 146 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 3.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 1 | 33.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 66.67% |
Functions | 4 | |
▷ Named functions | 4 | 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 1 test
Image compression Passed 1 test
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin