Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▼0.94MB] [CPU: ▼72.30ms] Passed 4 tests
Analyzing server-side resources used by They Said So
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 140.21 ▲39.55 |
Dashboard /wp-admin | 3.01 ▼0.30 | 93.31 ▼36.61 |
Posts /wp-admin/edit.php | 3.01 ▼0.35 | 67.17 ▼59.54 |
Add New Post /wp-admin/post-new.php | 3.01 ▼2.88 | 73.27 ▼152.41 |
Media Library /wp-admin/upload.php | 3.01 ▼0.22 | 68.33 ▼40.64 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
They Said So: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲8 | 14.53 ▲1.04 | 4.71 ▼0.05 | 80.61 ▼16.23 |
Dashboard /wp-admin | 2,207 ▲7 | 4.86 ▼0.99 | 237.96 ▼7.43 | 103.27 ▲0.61 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▼0.06 | 110.73 ▲11.76 | 70.61 ▲11.04 |
Add New Post /wp-admin/post-new.php | 1,364 ▲1 | 16.69 ▲0.54 | 1,441.58 ▲82.92 | 155.94 ▲71.01 |
Media Library /wp-admin/upload.php | 1,383 ▼2 | 4.15 ▼0.16 | 242.69 ▼10.57 | 100.37 ▼6.92 |
They Said So /wp-admin/theysaidso.php | 26 | 0.44 | 0.19 | 61.00 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- The plugin did not uninstall gracefully
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/they-said-so/theysaidso.php:221
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/they-said-so/theysaidso_widget.php:5
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/theysaidso.php
- > Network (severe)
wp-admin/theysaidso.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== they-said-so ===
) - Tags: You are using too many tags: 14 tag instead of maximum 10
they-said-so/theysaidso.php 85% from 13 tests
The main PHP file in "They Said So" ver. 1.2.8 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("they-said-so.php" instead of "theysaidso.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 251 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin336 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 48 | 11 | 336 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 14.50 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 20.00% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin