Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.17MB] [CPU: ▼2.72ms] Passed 4 tests
An overview of server-side resources used by Sectionly
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 43.06 ▼1.72 |
Dashboard /wp-admin | 3.47 ▲0.17 | 53.07 ▼0.22 |
Posts /wp-admin/edit.php | 3.58 ▲0.23 | 55.89 ▲2.00 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 89.41 ▼10.92 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 43.54 ▲6.17 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 43 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Sectionly
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,908 ▲122 | 13.40 ▼0.95 | 9.08 ▲6.89 | 44.14 ▼2.48 |
Dashboard /wp-admin | 2,202 ▲22 | 5.61 ▼0.04 | 89.47 ▲1.03 | 38.40 ▼2.91 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.02 ▲0.01 | 41.19 ▲0.43 | 36.10 ▼1.87 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 23.53 ▲0.42 | 673.56 ▲25.03 | 61.55 ▲9.93 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.11 ▼0.09 | 107.52 ▲7.65 | 47.90 ▲4.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/sectionly/public/partials/sectionly-public-display.php
- > /wp-content/plugins/sectionly/admin/partials/sectionly-admin-display.php
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/sectionly/includes/vc-shortocdes/shortcodes/sectionly-testimonial.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/sectionly/includes/vc-shortocdes/shortcodes/sectionly-services.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/sectionly/includes/vc-shortocdes/shortcodes/sectionly-blogs.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/sectionly/includes/vc-shortocdes/shortcodes/sectionly-team.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sectionly/includes/vc-shortocdes/regsiter-vc-shortcodes.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/sectionly/includes/vc-shortocdes/shortcodes/sectionly-progressbar.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Contributors: The plugin contributors field is missing
sectionly/sectionly.php 92% from 13 tests
Analyzing the main PHP file in "Sectionly" version 1.0
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 288 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin1,587 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 25 | 368 | 624 | 1,253 |
CSS | 3 | 60 | 26 | 252 |
JavaScript | 4 | 30 | 76 | 82 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 2.23 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 1.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 59 | |
▷ Static methods | 3 | 5.08% |
▷ Public methods | 43 | 72.88% |
▷ Protected methods | 10 | 16.95% |
▷ Private methods | 6 | 10.17% |
Functions | 16 | |
▷ Named functions | 15 | 93.75% |
▷ Anonymous functions | 1 | 6.25% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 compressed PNG files occupy 0.00MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/twitter.png | 0.42KB | 0.29KB | ▼ 30.48% |
public/images/instagram.png | 0.95KB | 1.14KB | 0.00% |
public/images/facebook.png | 0.62KB | 0.63KB | 0.00% |
public/images/linkedin.png | 0.73KB | 0.91KB | 0.00% |