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.23MB] [CPU: ▼7.23ms] Passed 4 tests
A check of server-side resources used by Spacento
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.98 ▲0.52 | 43.40 ▼2.41 |
Dashboard /wp-admin | 3.79 ▲0.49 | 54.62 ▲2.66 |
Posts /wp-admin/edit.php | 3.84 ▲0.49 | 50.28 ▲2.81 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.47 | 61.13 ▼31.36 |
Media Library /wp-admin/upload.php | 3.65 ▲0.42 | 44.87 ▲2.21 |
All Properties /wp-admin/edit.php?post_type=spacento_property | 3.76 | 42.77 |
Property Type /wp-admin/edit-tags.php?taxonomy=spacento-property-type&post_type=spacento_property | 3.65 | 39.84 |
Add New Property /wp-admin/post-new.php?post_type=spacento_property | 3.88 | 62.41 |
Property Location /wp-admin/edit-tags.php?taxonomy=spacento-property-location&post_type=spacento_property | 3.65 | 35.93 |
Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 76 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_spacento-properties-widget |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Spacento: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,004 ▲243 | 14.87 ▲0.52 | 32.09 ▲30.17 | 36.93 ▼8.31 |
Dashboard /wp-admin | 2,240 ▲60 | 5.67 ▲0.02 | 94.10 ▼5.61 | 41.82 ▼0.25 |
Posts /wp-admin/edit.php | 2,142 ▲39 | 2.01 ▲0.01 | 37.40 ▼1.20 | 35.44 ▲0.38 |
Add New Post /wp-admin/post-new.php | 6,235 ▲4,707 | 19.05 ▼4.12 | 926.74 ▲236.12 | 66.37 ▲5.53 |
Media Library /wp-admin/upload.php | 1,439 ▲39 | 4.25 ▲0.05 | 104.16 ▼15.16 | 46.41 ▼1.66 |
All Properties /wp-admin/edit.php?post_type=spacento_property | 1,170 | 1.97 | 34.86 | 31.13 |
Property Type /wp-admin/edit-tags.php?taxonomy=spacento-property-type&post_type=spacento_property | 1,313 | 2.17 | 27.78 | 30.24 |
Add New Property /wp-admin/post-new.php?post_type=spacento_property | 3,069 | 8.03 | 187.33 | 123.92 |
Property Location /wp-admin/edit-tags.php?taxonomy=spacento-property-location&post_type=spacento_property | 1,313 | 2.29 | 26.73 | 29.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- can_compress_scripts
- widget_spacento-properties-widget
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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 take a closer look at the following
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/spacento/admin/partials/spacento-admin-display.php
- > /wp-content/plugins/spacento/public/partials/spacento-public-display.php
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Trait 'Spacento_Property_Renderer' not found in wp-content/plugins/spacento/admin/class-shortcode.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/spacento/admin/class-widget.php:6
- > PHP Fatal error
Trait 'Spacento_Property_Renderer' not found in wp-content/plugins/spacento/admin/class-spacento-shortcodes.php on line 15
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/spacento/admin/class-spacento-properties-widget.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/spacento/public/templates/property.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/spacento/admin/partials/meta-box.php:18
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
- > GET request to /wp-admin/post-new.php?post_type=spacento_property
- > Network (severe)
wp-admin/REPLACEWITHURL - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== spacento ===
) - Donate link: Please fix this invalid url: "sproutient.com"
spacento/spacento.php Passed 13 tests
The principal PHP file in "Spacento" v. 1.0.4 is loaded by WordPress automatically on each request
96 characters long description:
This is a short description of what the plugin does. It's displayed in the WordPress admin area.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected5,445 lines of code in 64 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 44 | 1,332 | 1,892 | 3,707 |
Sass | 4 | 200 | 0 | 876 |
JavaScript | 11 | 340 | 32 | 853 |
JSON | 1 | 0 | 0 | 5 |
CSS | 4 | 0 | 0 | 4 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 15.06 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 3.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 40.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 31 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 31 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 146 | |
▷ Static methods | 20 | 13.70% |
▷ Public methods | 139 | 95.21% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 4.79% |
Functions | 17 | |
▷ Named functions | 4 | 23.53% |
▷ Anonymous functions | 13 | 76.47% |
Constants | 3 | |
▷ Global constants | 3 | 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