Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼5.44ms] Passed 4 tests
Analyzing server-side resources used by Content Sections
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 41.97 ▲0.77 |
Dashboard /wp-admin | 3.35 ▲0.04 | 48.37 ▼4.45 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 50.69 ▲2.50 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 86.82 ▼20.58 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 42.72 ▲11.43 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Content Sections
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.15 ▼0.23 | 2.00 ▼0.00 | 46.19 ▲7.68 |
Dashboard /wp-admin | 2,192 ▲15 | 5.62 ▲0.01 | 93.35 ▲2.82 | 37.18 ▼6.52 |
Posts /wp-admin/edit.php | 2,097 ▼0 | 2.03 ▲0.07 | 39.55 ▲3.49 | 35.19 ▲1.60 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.08 ▼0.17 | 645.24 ▼5.67 | 56.65 ▼1.74 |
Media Library /wp-admin/upload.php | 1,397 ▼6 | 4.23 ▲0.04 | 97.68 ▲0.11 | 46.34 ▲0.17 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/content-sections/views/content-section-toc.php
- > /wp-content/plugins/content-sections/views/content-section-anchor.php
- 11× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: namespace in wp-content/plugins/content-sections/views/options.php on line 10
- > PHP Notice
Undefined variable: atts in wp-content/plugins/content-sections/views/content-section-anchor.php on line 1
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/content-sections/init.php on line 29
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/content-sections/views/content-section-anchor.php on line 1
- > PHP Notice
Undefined variable: namespace in wp-content/plugins/content-sections/views/options.php on line 1
- > PHP Notice
Undefined variable: content in wp-content/plugins/content-sections/views/content-section-anchor.php on line 1
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/content-sections/views/content-section-toc.php on line 2
- > PHP Notice
Undefined variable: page_title in wp-content/plugins/content-sections/views/options.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/content-sections/init.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/content-sections/views/options.php:11
- > PHP Notice
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 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: comments, spam
content-sections/init.php 85% from 13 tests
The entry point to "Content Sections" version 0.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 236 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("content-sections.php" instead of "init.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin287 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 72 | 240 | 284 |
JavaScript | 2 | 2 | 13 | 3 |
CSS | 1 | 0 | 6 | 0 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 1.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 4 | 16.00% |
▷ Public methods | 24 | 96.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 4.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
No PNG images were found in this plugin