Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.97MB] [CPU: ▼5.79ms] Passed 4 tests
Server-side resources used by SPEC Theme Options
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.15 ▲1.68 | 43.23 ▲6.39 |
Dashboard /wp-admin | 4.98 ▲1.67 | 53.24 ▲4.92 |
Posts /wp-admin/edit.php | 5.03 ▲1.67 | 56.07 ▲10.64 |
Add New Post /wp-admin/post-new.php | 4.80 ▼1.09 | 41.67 ▼44.30 |
Media Library /wp-admin/upload.php | 4.84 ▲1.61 | 44.95 ▲9.84 |
Redux Framework /wp-admin/tools.php?page=redux-framework | 5.35 | 40.73 |
All Items /wp-admin/edit.php?post_type=portfolio | 4.94 | 45.08 |
Add New /wp-admin/post-new.php?post_type=portfolio | 5.05 | 56.36 |
Add New /wp-admin/post-new.php?post_type=testimonial | 5.04 | 58.09 |
All Items /wp-admin/edit.php?post_type=testimonial | 4.94 | 47.14 |
Import Demo Data /wp-admin/themes.php?page=pt-one-click-demo-import | 5.01 | 38.14 |
Portfolio Category /wp-admin/edit-tags.php?taxonomy=portfolio-category&post_type=portfolio | 4.83 | 42.13 |
Server storage [IO: ▲10.95MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 1,003 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for SPEC Theme Options
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,965 ▲179 | 13.78 ▼0.66 | 8.28 ▲6.52 | 37.14 ▼3.71 |
Dashboard /wp-admin | 2,279 ▲102 | 5.52 ▼0.14 | 89.77 ▼0.52 | 40.51 ▲0.14 |
Posts /wp-admin/edit.php | 2,187 ▲87 | 2.02 ▼0.01 | 38.42 ▲3.39 | 36.89 ▼1.11 |
Add New Post /wp-admin/post-new.php | 1,597 ▲60 | 23.41 ▲5.34 | 672.84 ▲58.41 | 59.93 ▼4.33 |
Media Library /wp-admin/upload.php | 1,484 ▲87 | 4.19 ▼0.02 | 93.76 ▼14.04 | 41.11 ▼3.24 |
Redux Framework /wp-admin/tools.php?page=redux-framework | 1,116 | 3.65 | 74.57 | 66.13 |
All Items /wp-admin/edit.php?post_type=portfolio | 1,165 | 1.98 | 30.03 | 30.26 |
Add New /wp-admin/post-new.php?post_type=portfolio | 2,426 | 7.78 | 170.63 | 63.64 |
Add New /wp-admin/post-new.php?post_type=testimonial | 2,336 | 7.74 | 155.11 | 53.74 |
All Items /wp-admin/edit.php?post_type=testimonial | 1,148 | 1.95 | 30.38 | 31.65 |
Import Demo Data /wp-admin/themes.php?page=pt-one-click-demo-import | 1,005 | 2.03 | 38.37 | 44.04 |
Portfolio Category /wp-admin/edit-tags.php?taxonomy=portfolio-category&post_type=portfolio | 1,355 | 2.12 | 27.35 | 28.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
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)
The smoke test was a success, however most plugin functionality was not tested
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
Please take a closer look at the following
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/spec-theme-options/public/partials/spec-theme-options-public-display.php
- > /wp-content/plugins/spec-theme-options/extensions/one-click-demo-import/one-click-demo-import.php
- > /wp-content/plugins/spec-theme-options/admin/partials/spec-theme-options-admin-display.php
- 54× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/spec-theme-options/extensions/cmb2/includes/types/CMB2_Type_File_Base.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/spec-theme-options/extensions/custom-post/custom-post.php:63
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/spec-theme-options/extensions/cmb2/includes/types/CMB2_Type_Oembed.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Setting' not found in wp-content/plugins/spec-theme-options/extensions/one-click-demo-import/inc/CustomizerOption.php:14
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Radio' not found in wp-content/plugins/spec-theme-options/extensions/cmb2/includes/types/CMB2_Type_Multicheck.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/spec-theme-options/extensions/cmb2/includes/types/CMB2_Type_Taxonomy_Base.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Select' not found in wp-content/plugins/spec-theme-options/extensions/cmb2/includes/types/CMB2_Type_Taxonomy_Select_Hierarchical.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text_Date' not found in wp-content/plugins/spec-theme-options/extensions/cmb2/includes/types/CMB2_Type_Text_Time.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/spec-theme-options/extensions/redux/ReduxCore/templates/panel/header-stickybar.tpl.php:15
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/spec-theme-options/extensions/cmb2/includes/types/CMB2_Type_Colorpicker.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Contributors: The plugin contributors field is not present
spec-theme-options/spec-theme-options.php Passed 13 tests
The main file in "SPEC Theme Options" v. 1.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
63 characters long description:
A simple plugin to extend functionalities of SPEC INDIA Themes.
Code Analysis 97% from 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
Success! There were no dangerous files found in this plugin124,270 lines of code in 655 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 228 | 9,443 | 20,422 | 35,756 |
PO File | 120 | 14,315 | 18,502 | 32,323 |
JavaScript | 112 | 5,203 | 3,026 | 20,129 |
CSS | 106 | 7,133 | 1,532 | 16,034 |
SVG | 4 | 0 | 12 | 9,995 |
Sass | 80 | 1,569 | 82 | 9,279 |
Markdown | 3 | 230 | 0 | 690 |
JSON | 2 | 0 | 0 | 64 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Please tend to the following items
- Please reduce cyclomatic complexity of methods to less than 100 (currently 117)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 29.65 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 334.00 |
Average method complexity | 4.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 117.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 234 | |
▷ Abstract classes | 13 | 5.56% |
▷ Concrete classes | 221 | 94.44% |
▷ Final classes | 1 | 0.45% |
Methods | 1,744 | |
▷ Static methods | 444 | 25.46% |
▷ Public methods | 1,345 | 77.12% |
▷ Protected methods | 283 | 16.23% |
▷ Private methods | 116 | 6.65% |
Functions | 64 | |
▷ Named functions | 56 | 87.50% |
▷ Anonymous functions | 8 | 12.50% |
Constants | 116 | |
▷ Global constants | 7 | 6.03% |
▷ Class constants | 109 | 93.97% |
▷ Public constants | 109 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
70 compressed PNG files occupy 0.11MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
extensions/redux/ReduxCore/assets/img/raw/toggle_tabs.png | 0.35KB | 0.35KB | 0.00% |
extensions/redux/ReduxCore/assets/img/raw/jquery-ui-bootstrap/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |
extensions/redux/ReduxCore/assets/img/3cl.png | 0.34KB | 0.33KB | 0.29% |
extensions/redux/ReduxCore/assets/img/4-col-portfolio.png | 0.16KB | 0.17KB | 0.00% |
extensions/redux/ReduxCore/assets/img/jquery-ui-bootstrap/ui-bg_glass_75_ffffff_1x400.png | 0.10KB | 0.10KB | 0.00% |