Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼5.76ms] Passed 4 tests
Analyzing server-side resources used by Websitescanner Custom Schema
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 46.25 ▼22.05 |
Dashboard /wp-admin | 3.40 ▲0.09 | 71.09 ▲15.04 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 53.70 ▲2.11 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 97.37 ▼2.79 |
Media Library /wp-admin/upload.php | 3.33 ▲0.09 | 38.10 ▼0.30 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Websitescanner Custom Schema
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲40 | 13.26 ▼1.22 | 1.96 ▲0.04 | 44.12 ▼4.11 |
Dashboard /wp-admin | 2,210 ▲1 | 5.87 ▲0.08 | 108.42 ▲2.09 | 40.79 ▼0.39 |
Posts /wp-admin/edit.php | 2,103 ▲14 | 2.15 ▲0.18 | 40.84 ▼0.25 | 35.34 ▲0.64 |
Add New Post /wp-admin/post-new.php | 6,500 ▲4,958 | 20.41 ▲1.85 | 1,091.76 ▲343.55 | 65.14 ▲8.22 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.24 ▲0.00 | 100.70 ▼10.39 | 43.74 ▼0.37 |
Uninstaller [IO: ✅] [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
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/websitescanner-custom-schema/admin/partials/websitescanner-custom-schema-post-editor-display.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: rich snippets, json-ld, custom schema, schema markup, schema...
websitescanner-custom-schema/websitescanner-custom-schema.php Passed 13 tests
Analyzing the main PHP file in "Websitescanner Custom Schema" version 1.3.7
60 characters long description:
Adds a field to the editor for custom JSON-ld schema markup.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin442 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 126 | 456 | 335 |
PO File | 1 | 11 | 14 | 52 |
CSS | 1 | 0 | 0 | 31 |
JavaScript | 1 | 3 | 0 | 24 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 2 | 7.14% |
▷ Public methods | 23 | 82.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.86% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin