Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.67MB] [CPU: ▼3.10ms] Passed 4 tests
A check of server-side resources used by Sectors - Conditional Templates & Hooks
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.98 ▲0.52 | 44.07 ▲4.91 |
Dashboard /wp-admin | 4.04 ▲0.69 | 50.27 ▼11.47 |
Posts /wp-admin/edit.php | 4.15 ▲0.80 | 49.03 ▲9.27 |
Add New Post /wp-admin/post-new.php | 6.62 ▲0.73 | 90.05 ▼13.70 |
Media Library /wp-admin/upload.php | 3.96 ▲0.73 | 40.89 ▲7.85 |
Sectors /wp-admin/admin.php?page=wpsct | 3.95 | 38.24 |
Add New /wp-admin/admin.php?page=wpsct-edit | 4.05 | 46.38 |
Server storage [IO: ▲0.52MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 77 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
_ca_condition_type_cache |
can_compress_scripts |
sct_db_version |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Sectors - Conditional Templates & Hooks
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲71 | 14.24 ▼0.11 | 1.69 ▼0.09 | 63.92 ▲21.21 |
Dashboard /wp-admin | 2,217 ▲40 | 5.56 ▼0.02 | 84.74 ▼14.54 | 82.08 ▲37.02 |
Posts /wp-admin/edit.php | 2,125 ▲25 | 1.98 ▼0.04 | 33.51 ▼6.12 | 31.06 ▼5.33 |
Add New Post /wp-admin/post-new.php | 1,702 ▲174 | 22.14 ▼0.97 | 741.63 ▲125.00 | 54.46 ▼5.61 |
Media Library /wp-admin/upload.php | 1,422 ▲22 | 4.16 ▼0.10 | 99.01 ▲2.01 | 84.37 ▲43.43 |
Sectors /wp-admin/admin.php?page=wpsct | 1,041 | 2.01 | 24.63 | 27.59 |
Add New /wp-admin/admin.php?page=wpsct-edit | 1,564 | 3.37 | 70.73 | 72.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 8 options
- theysaidso_admin_options
- db_upgraded
- sct_db_version
- can_compress_scripts
- widget_recent-posts
- _ca_condition_type_cache
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
- 14× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined variable: post in wp-content/plugins/sectors/view/meta_box_template.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/sectors/lib/wp-content-aware-engine/view/group_template.php:22
- > PHP Notice
Trying to get property 'post_name' of non-object in wp-content/plugins/sectors/view/meta_box_template.php on line 14
- > PHP Notice
Trying to get property 'post_name' of non-object in wp-content/plugins/sectors/view/meta_box_template.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/sectors/lib/wp-content-aware-engine/view/condition_template.php:10
- > PHP Notice
Trying to get property 'post_status' of non-object in wp-content/plugins/sectors/view/meta_box_status.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/sectors/view/meta_box_submit.php:10
- > PHP Fatal error
Uncaught Error: Class 'SCT_App' not found in wp-content/plugins/sectors/view/meta_box_status.php:9
- > PHP Notice
Undefined variable: post in wp-content/plugins/sectors/view/meta_box_status.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/sectors/view/meta_box_api.php:11
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 97% 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
These attributes need to be fixed:
- Donate link: Please fix this invalid URI: ""
sectors/sectors.php Passed 13 tests
The principal PHP file in "Sectors - Conditional Templates & Hooks" v. 1.2 is loaded by WordPress automatically on each request
61 characters long description:
Add templates, actions, and filters depending on the context.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected5,752 lines of code in 58 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 42 | 884 | 2,470 | 4,055 |
CSS | 3 | 0 | 34 | 837 |
JavaScript | 9 | 89 | 116 | 783 |
LESS | 1 | 11 | 10 | 39 |
JSON | 2 | 0 | 0 | 36 |
Markdown | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 19.69 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 120.00 |
Average method complexity | 3.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 29 | |
▷ Abstract classes | 2 | 6.90% |
▷ Concrete classes | 27 | 93.10% |
▷ Final classes | 6 | 22.22% |
Methods | 261 | |
▷ Static methods | 37 | 14.18% |
▷ Public methods | 210 | 80.46% |
▷ Protected methods | 38 | 14.56% |
▷ Private methods | 13 | 4.98% |
Functions | 9 | |
▷ Named functions | 6 | 66.67% |
▷ Anonymous functions | 3 | 33.33% |
Constants | 26 | |
▷ Global constants | 3 | 11.54% |
▷ Class constants | 23 | 88.46% |
▷ Public constants | 23 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/logo.png | 0.83KB | 0.98KB | 0.00% |