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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.81MB] [CPU: ▼5.85ms] Passed 4 tests
An overview of server-side resources used by Spiraclethemes Site Library
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.80 ▲0.34 | 36.36 ▼9.25 |
Dashboard /wp-admin | 4.27 ▲0.97 | 51.90 ▼0.36 |
Posts /wp-admin/edit.php | 4.38 ▲1.03 | 54.05 ▼5.76 |
Add New Post /wp-admin/post-new.php | 6.86 ▲0.98 | 87.78 ▼8.03 |
Media Library /wp-admin/upload.php | 4.19 ▲0.96 | 43.69 ▲6.41 |
Import Demo Data /wp-admin/admin.php?page=pt-one-click-demo-import | 4.05 | 29.99 |
Import Demo Data /wp-admin/themes.php?page=one-click-demo-import | 4.44 | 36.65 |
Server storage [IO: ▲9.24MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 179 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
spiraclethemes_sitelib_install_date |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Spiraclethemes Site Library
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲53 | 13.57 ▼1.11 | 1.52 ▼0.45 | 34.73 ▼11.12 |
Dashboard /wp-admin | 2,227 ▲39 | 5.86 ▲0.98 | 104.45 ▼32.36 | 42.53 ▼4.75 |
Posts /wp-admin/edit.php | 2,115 ▲26 | 2.17 ▲0.19 | 40.84 ▲6.68 | 37.32 ▲0.76 |
Add New Post /wp-admin/post-new.php | 1,532 ▲18 | 23.49 ▲5.82 | 641.74 ▼5.36 | 55.71 ▼16.59 |
Media Library /wp-admin/upload.php | 1,415 ▲24 | 4.25 ▲0.05 | 98.86 ▲0.03 | 41.90 ▼2.33 |
Import Demo Data /wp-admin/admin.php?page=pt-one-click-demo-import | 28 | 0.44 | 0.16 | 3.32 |
Import Demo Data /wp-admin/themes.php?page=one-click-demo-import | 1,181 | 2.11 | 30.25 | 53.75 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests 25% 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)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/spiraclethemes-site-library/vendor/ocdi/one-click-demo-import.php
- 23× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/spiraclethemes-site-library/elements/own-shop/recent-blog/template/view.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/spiraclethemes-site-library/elements/own-shop/new-prod/template/view.php:3
- > PHP Fatal error
Uncaught Error: Class 'OCDI\\PluginInstaller' not found in wp-content/plugins/spiraclethemes-site-library/vendor/ocdi/views/import.php:10
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-upgrader.php' (include_path='.:/usr/share/php') in wp-content/plugins/spiraclethemes-site-library/vendor/ocdi/inc/PluginInstallerSkin.php on line 11
- > PHP Fatal error
Uncaught Error: Class 'AwesomeMotive\\WPContentImporter2\\WPImporterLoggerCLI' not found in wp-content/plugins/spiraclethemes-site-library/vendor/ocdi/inc/Logger.php:10
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/spiraclethemes-site-library/elements/own-shop/list-prod/template/view.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/spiraclethemes-site-library/elements/blogson/post-grid/template/view.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/spiraclethemes-site-library/elements/own-shop/popular-prod/template/view.php:3
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-upgrader.php): failed to open stream: No such file or directory in wp-content/plugins/spiraclethemes-site-library/vendor/ocdi/inc/PluginInstallerSkinSilent.php on line 11
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-upgrader.php' (include_path='.:/usr/share/php') in wp-content/plugins/spiraclethemes-site-library/vendor/ocdi/inc/PluginInstallerSkinSilent.php on line 11
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=pt-one-click-demo-import
- > Network (severe)
wp-admin/admin.php?page=pt-one-click-demo-import - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
9 plugin tags: themes, spiraclethemes, menus, content, widgets...
spiraclethemes-site-library/spiraclethemes-site-library.php 92% from 13 tests
The primary PHP file in "Spiraclethemes Site Library" version 1.2.5 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Domain Path: The domain path folder does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin115,541 lines of code in 123 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
XML | 26 | 2,211 | 3,617 | 103,445 |
PHP | 67 | 2,276 | 3,186 | 9,754 |
CSS | 4 | 217 | 2 | 1,367 |
JavaScript | 3 | 126 | 114 | 472 |
Markdown | 2 | 90 | 0 | 197 |
SVG | 18 | 0 | 0 | 127 |
Bourne Shell | 1 | 21 | 8 | 99 |
JSON | 2 | 0 | 0 | 80 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 22.92 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 290.00 |
Average method complexity | 3.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 38 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 38 | 100.00% |
▷ Final classes | 3 | 7.89% |
Methods | 356 | |
▷ Static methods | 53 | 14.89% |
▷ Public methods | 259 | 72.75% |
▷ Protected methods | 61 | 17.13% |
▷ Private methods | 36 | 10.11% |
Functions | 83 | |
▷ Named functions | 72 | 86.75% |
▷ Anonymous functions | 11 | 13.25% |
Constants | 26 | |
▷ Global constants | 10 | 38.46% |
▷ Class constants | 16 | 61.54% |
▷ Public constants | 16 | 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
No PNG files were detected