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.03MB] [CPU: ▼8.11ms] Passed 4 tests
A check of server-side resources used by Content Switcher
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 41.89 ▼7.07 |
Dashboard /wp-admin | 3.33 ▲0.03 | 45.29 ▼26.00 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 45.34 ▲0.99 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 95.43 ▼0.35 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 37.63 ▲4.53 |
Content Switcher /wp-admin/options-general.php?page=content-switcher | 3.30 | 31.82 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
content_switcher |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Content Switcher
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.31 ▼1.07 | 4.49 ▲2.47 | 41.54 ▼3.80 |
Dashboard /wp-admin | 2,213 ▲28 | 5.86 ▲0.95 | 106.86 ▲0.12 | 41.45 ▼1.10 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.03 ▲0.01 | 40.50 ▲2.47 | 32.82 ▼2.00 |
Add New Post /wp-admin/post-new.php | 6,490 ▲4,948 | 20.36 ▲2.07 | 911.22 ▲245.16 | 54.70 ▼6.79 |
Media Library /wp-admin/upload.php | 1,386 ▼5 | 4.19 ▼0.02 | 99.61 ▼3.59 | 44.46 ▲2.57 |
Content Switcher /wp-admin/options-general.php?page=content-switcher | 893 | 2.02 | 23.22 | 30.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- content_switcher
- db_upgraded
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
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
The following issues need your attention
- 4× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/content-switcher/libraries/index.php
- > /wp-content/plugins/content-switcher/includes/index.php
- > /wp-content/plugins/content-switcher/languages/index.php
- > /wp-content/plugins/content-switcher/index.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
No tags were found
content-switcher/content-switcher.php 92% from 13 tests
The main file in "Content Switcher" v. 4.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 163 characters long)
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
There were no executable files found in this plugin547 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 81 | 22 | 438 |
PO File | 1 | 37 | 0 | 109 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 33 | |
▷ Named functions | 29 | 87.88% |
▷ Anonymous functions | 4 | 12.12% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected