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
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.94ms] Passed 4 tests
This is a short check of server-side resources used by Tally Theme Setup
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 34.91 ▼5.82 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.55 ▼1.85 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 48.90 ▼2.91 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 92.17 ▼9.16 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.71 ▲1.88 |
Sample Data /wp-admin/themes.php?page=tallythemesetup-demo-importer | 3.20 | 30.07 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Tally Theme Setup
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲95 | 13.27 ▼1.13 | 1.73 ▼0.77 | 41.60 ▼0.66 |
Dashboard /wp-admin | 2,236 ▲45 | 5.85 ▲0.94 | 106.67 ▲6.02 | 44.90 ▲3.77 |
Posts /wp-admin/edit.php | 2,119 ▲27 | 2.18 ▲0.17 | 40.59 ▼4.77 | 41.58 ▲5.24 |
Add New Post /wp-admin/post-new.php | 1,551 ▲23 | 18.67 ▲0.35 | 590.20 ▼14.18 | 53.02 ▲3.57 |
Media Library /wp-admin/upload.php | 1,418 ▲30 | 4.24 ▲0.06 | 100.47 ▼1.57 | 46.90 ▲5.25 |
Sample Data /wp-admin/themes.php?page=tallythemesetup-demo-importer | 834 | 2.02 | 22.87 | 34.48 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/tally-theme-setup/tally-theme-setup.php
- 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/tally-theme-setup/inc/import-xml.php on line 18
- > PHP Warning
require_once(ABSPATHwp-admin/includes/import.php): failed to open stream: No such file or directory in wp-content/plugins/tally-theme-setup/inc/import-xml.php on line 18
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/import.php' (include_path='.:/usr/share/php') in wp-content/plugins/tally-theme-setup/inc/import-xml.php on line 18
- > PHP Fatal error
Uncaught Error: Call to undefined function get_term_by() in wp-content/plugins/tally-theme-setup/demo-sample/menu-config.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tally-theme-setup/inc/script-loader.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_get_theme() in wp-content/plugins/tally-theme-setup/loader-v1.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/tally-theme-setup/loader-v2.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tally-theme-setup/inc/notice.php:2
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: tallythemes, sample data, sample data importer, importer
tally-theme-setup/tally-theme-setup.php Passed 13 tests
"Tally Theme Setup" version 2.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
36 characters long description:
Import demo content for Tally Themes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected3,546 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 654 | 597 | 3,417 |
JavaScript | 1 | 3 | 1 | 65 |
CSS | 1 | 3 | 0 | 64 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 48.69 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 179.00 |
Average method complexity | 6.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 50.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 115 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 115 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 13 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected