Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.07MB] [CPU: ▼3.78ms] Passed 4 tests
Server-side resources used by Templatespare - Effortlessly import creative Starter Sites and have stylish websites within minutes!
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 35.14 ▼0.14 |
Dashboard /wp-admin | 3.39 ▲0.05 | 51.96 ▼7.56 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 59.85 ▲13.95 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 85.11 ▼11.04 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 38.75 ▲3.62 |
Server storage [IO: ▲0.85MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Templatespare - Effortlessly import creative Starter Sites and have stylish websites within minutes!
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,281 ▲534 | 20.70 ▲6.61 | 1.58 ▲0.09 | 33.07 ▼7.78 |
Dashboard /wp-admin | 2,681 ▲500 | 11.12 ▲5.40 | 272.06 ▲171.52 | 116.52 ▲71.52 |
Posts /wp-admin/edit.php | 2,519 ▲422 | 10.93 ▲8.91 | 91.01 ▲55.83 | 29.50 ▼5.50 |
Add New Post /wp-admin/post-new.php | 1,706 ▲180 | 23.32 ▲0.58 | 546.70 ▼143.24 | 31.12 ▼19.89 |
Media Library /wp-admin/upload.php | 1,936 ▲539 | 12.79 ▲8.62 | 149.15 ▲51.34 | 42.29 ▼0.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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
- 15× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Warning
Use of undefined constant AFTMLS_PLUGIN_DIR - assumed 'AFTMLS_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/templatespare/includes/companion/class-aftc-main.php on line 10
- > PHP Warning
Use of undefined constant AFTMLS_PLUGIN_DIR - assumed 'AFTMLS_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/templatespare/includes/companion/class-aftc-logger.php on line 9
- > PHP Fatal error
Uncaught Error: Class 'AFTMLS_Importer_Logger' not found in wp-content/plugins/templatespare/includes/companion/importer/class-logger-cli.php:3
- > PHP Fatal error
require(): Failed opening required 'AFTMLS_PLUGIN_DIRincludes/companion/importer/class-logger.php' (include_path='.:/usr/share/php') in wp-content/plugins/templatespare/includes/companion/class-aftc-logger.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/templatespare/includes/layouts/class-plugin-notice.php:11
- > PHP Fatal error
require(): Failed opening required 'AFTMLS_PLUGIN_DIRincludes/companion/importer/class-wxr-importer.php' (include_path='.:/usr/share/php') in wp-content/plugins/templatespare/includes/companion/class-aftc-wxr-importer.php on line 11
- > PHP Warning
require(AFTMLS_PLUGIN_DIRincludes/companion/importer/class-logger.php): failed to open stream: No such file or directory in wp-content/plugins/templatespare/includes/companion/class-aftc-logger.php on line 9
- > PHP Warning
require(AFTMLS_PLUGIN_DIRincludes/companion/importer/class-wxr-importer.php): failed to open stream: No such file or directory in wp-content/plugins/templatespare/includes/companion/class-aftc-wxr-importer.php on line 11
- > PHP Warning
Use of undefined constant AFTMLS_PLUGIN_URL - assumed 'AFTMLS_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/templatespare/includes/layouts/class-plugin-notice.php on line 9
- > PHP Fatal error
require(): Failed opening required 'AFTMLS_PLUGIN_DIRincludes/companion/class-aftc-helpers.php' (include_path='.:/usr/share/php') in wp-content/plugins/templatespare/includes/companion/class-aftc-main.php on line 10
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: customizer, starter sites, one click, blocks, widgets...
templatespare/templatespare.php Passed 13 tests
The primary PHP file in "Templatespare - Effortlessly import creative Starter Sites and have stylish websites within minutes!" version 1.2.0 is used by WordPress to initiate all plugin functionality
119 characters long description:
A beautiful collection of Ready to Import Starter Sites with just one click. Get modern & creative websites in minutes!
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin6,861 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 1,409 | 1,308 | 6,014 |
SVG | 1 | 24 | 1 | 515 |
JavaScript | 3 | 79 | 57 | 331 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 32.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 266.00 |
Average method complexity | 4.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 48.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 1 | 6.67% |
Methods | 137 | |
▷ Static methods | 26 | 18.98% |
▷ Public methods | 82 | 59.85% |
▷ Protected methods | 34 | 24.82% |
▷ Private methods | 21 | 15.33% |
Functions | 20 | |
▷ Named functions | 16 | 80.00% |
▷ Anonymous functions | 4 | 20.00% |
Constants | 8 | |
▷ Global constants | 5 | 62.50% |
▷ Class constants | 3 | 37.50% |
▷ Public constants | 3 | 100.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
4 PNG files occupy 0.27MB with 0.07MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/search-background.png | 192.41KB | 61.43KB | ▼ 68.07% |
assets/images/elementor.png | 5.97KB | 5.98KB | 0.00% |
assets/images/gutenberg.png | 64.54KB | 45.68KB | ▼ 29.21% |
assets/images/wordpress.png | 16.35KB | 17.47KB | 0.00% |