Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/azurecurve-theme-switcher/azurecurve-theme-switcher.php+97
Methods with the same name as their class will not be constructors in a future version of PHP; azc_ts_ThemeSwitcher has a deprecated constructor
Server metrics [RAM: ▼1.72MB] [CPU: ▼58.47ms] Passed 4 tests
Analyzing server-side resources used by azurecurve Theme Switcher
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.29 ▼1.18 | 8.60 ▼42.54 |
Dashboard /wp-admin | 2.30 ▼1.05 | 12.45 ▼51.44 |
Posts /wp-admin/edit.php | 2.30 ▼1.06 | 12.95 ▼44.61 |
Add New Post /wp-admin/post-new.php | 2.30 ▼3.59 | 11.28 ▼95.27 |
Media Library /wp-admin/upload.php | 2.30 ▼0.93 | 12.47 ▼24.03 |
Theme Switcher /wp-admin/admin.php?page=azc-ts | 2.30 | 12.75 |
Plugins /wp-admin/admin.php?page=azc-plugin-menus | 2.30 | 10.44 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_azc-ts-theme-switcher-widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for azurecurve Theme Switcher
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲82 | 13.25 ▼0.94 | 4.41 ▲2.58 | 42.79 ▼1.79 |
Dashboard /wp-admin | 2,222 ▲34 | 4.90 ▲0.02 | 105.40 ▼0.94 | 65.56 ▲27.72 |
Posts /wp-admin/edit.php | 2,120 ▲28 | 2.02 ▲0.01 | 34.49 ▼6.30 | 32.48 ▼4.97 |
Add New Post /wp-admin/post-new.php | 1,538 ▲2 | 17.58 ▼5.60 | 688.55 ▲56.02 | 56.59 ▼1.25 |
Media Library /wp-admin/upload.php | 1,416 ▲28 | 4.24 ▲0.01 | 114.09 ▲3.86 | 48.96 ▲3.91 |
Theme Switcher /wp-admin/admin.php?page=azc-ts | 803 | 2.07 | 25.86 | 25.18 |
Plugins /wp-admin/admin.php?page=azc-plugin-menus | 850 | 2.07 | 27.00 | 28.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- This plugin did not uninstall without warnings or errors
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in azc_ts_ThemeSwitcherWidget is deprecated since version 4.3.0! Use __construct() instead.
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_azc-ts-theme-switcher-widget
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=azc-plugin-menus
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in azc_ts_ThemeSwitcherWidget is deprecated since version 4.3.0! Use __construct() instead.
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/azurecurve-theme-switcher/includes/menu.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/azurecurve-theme-switcher/includes/menu.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: themes, classicpress, switching, wordpress, switcher...
azurecurve-theme-switcher/azurecurve-theme-switcher.php 85% from 13 tests
The entry point to "azurecurve Theme Switcher" version 2.2.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
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
Success! There were no dangerous files found in this plugin417 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 59 | 32 | 401 |
CSS | 1 | 0 | 2 | 16 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 19.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 4.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.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 | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/Favicon-16x16.png | 0.40KB | 0.34KB | ▼ 14.81% |