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
Install script ran successfully
Server metrics [RAM: ▲0.36MB] [CPU: ▲12.56ms] Passed 4 tests
Analyzing server-side resources used by Zoospas
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.85 ▲0.39 | 54.29 ▲3.64 |
Dashboard /wp-admin | 3.71 ▲0.40 | 73.57 ▲20.92 |
Posts /wp-admin/edit.php | 3.74 ▲0.39 | 70.57 ▲21.08 |
Add New Post /wp-admin/post-new.php | 6.22 ▲0.34 | 114.81 ▲13.25 |
Media Library /wp-admin/upload.php | 3.57 ▲0.34 | 53.48 ▲12.44 |
Add pet /wp-admin/admin.php?page=/wp-admin/post-new.php?post_type=zs_pets | 3.40 | 43.61 |
Support /wp-admin/admin.php?page=zs_support | 3.53 | 49.91 |
Admin Panel /wp-admin/admin.php?page=zs_admin | 3.53 | 50.32 |
Pets /wp-admin/edit.php?post_type=zs_pets | 3.66 | 56.41 |
Server storage [IO: ▲0.48MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Zoospas
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,847 ▲47 | 13.36 ▼1.48 | 1.77 ▼0.03 | 44.19 ▼0.06 |
Dashboard /wp-admin | 2,245 ▲39 | 4.86 ▲0.01 | 111.53 ▼3.75 | 43.21 ▼3.07 |
Posts /wp-admin/edit.php | 2,128 ▲36 | 2.01 ▼0.04 | 40.32 ▲0.92 | 36.08 ▼0.75 |
Add New Post /wp-admin/post-new.php | 1,565 ▲23 | 20.96 ▲2.69 | 754.58 ▲37.78 | 61.42 ▼5.26 |
Media Library /wp-admin/upload.php | 1,427 ▲39 | 4.17 ▼0.00 | 97.28 ▼8.21 | 43.13 ▲1.79 |
Add pet /wp-admin/admin.php?page=/wp-admin/post-new.php?post_type=zs_pets | 28 | 0.44 | 0.09 | 4.01 |
Support /wp-admin/admin.php?page=zs_support | 790 | 2.02 | 24.91 | 25.99 |
Admin Panel /wp-admin/admin.php?page=zs_admin | 991 | 2.05 | 24.48 | 28.39 |
Pets /wp-admin/edit.php?post_type=zs_pets | 1,092 | 2.00 | 30.93 | 30.67 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests 50% 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 16× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
require_once(ZOOSPAS_PLUGIN_DIR/admin-pages/fieldset.php): failed to open stream: No such file or directory in wp-content/plugins/zoospas-project-for-hakaton/admin-pages/functions.php on line 7
- > PHP Fatal error
require_once(): Failed opening required 'ZOOSPAS_PLUGIN_DIR/admin-pages/fieldset.php' (include_path='.:/usr/share/php') in wp-content/plugins/zoospas-project-for-hakaton/admin-pages/functions.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/zoospas-project-for-hakaton/front-pages/events-single-page.php:5
- > PHP Fatal error
require_once(): Failed opening required 'ZOOSPAS_PLUGIN_DIR/shortcodes/filter.php' (include_path='.:/usr/share/php') in wp-content/plugins/zoospas-project-for-hakaton/shortcodes/functions.php on line 7
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/zoospas-project-for-hakaton/zoospas.php on line 22
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/zoospas-project-for-hakaton/front-pages/events.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/zoospas-project-for-hakaton/templates/single.php:6
- > PHP Warning
require_once(ZOOSPAS_PLUGIN_DIR/shortcodes/filter.php): failed to open stream: No such file or directory in wp-content/plugins/zoospas-project-for-hakaton/shortcodes/functions.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/zoospas-project-for-hakaton/assets/functions.php:7
- > PHP Warning
Use of undefined constant ZOOSPAS_PLUGIN_DIR - assumed 'ZOOSPAS_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/zoospas-project-for-hakaton/shortcodes/functions.php on line 7
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=/wp-admin/post-new.php?post_type=zs_pets
- > Network (severe)
wp-admin/admin.php?page=/wp-admin/post-new.php?post_type=zs_pets - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- License uri: Invalid URI ("")
zoospas-project-for-hakaton/zoospas.php 77% from 13 tests
The primary PHP file in "Zoospas" version 0.1.5 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 209 characters long)
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: The principal plugin file should be the same as the plugin slug ("zoospas-project-for-hakaton.php" instead of "zoospas.php")
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
No dangerous file extensions were detected5,880 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 16 | 240 | 3,857 |
PHP | 16 | 512 | 194 | 1,240 |
Markdown | 1 | 165 | 0 | 387 |
JavaScript | 5 | 68 | 51 | 244 |
PO File | 1 | 68 | 60 | 152 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 23 | 92.00% |
▷ Public methods | 25 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 78 | |
▷ Named functions | 61 | 78.21% |
▷ Anonymous functions | 17 | 21.79% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
There are no PNG files in this plugin