Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.09MB] [CPU: ▲3.12ms] Passed 4 tests
Server-side resources used by Code Repository
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 42.34 ▲1.21 |
Dashboard /wp-admin | 3.40 ▲0.09 | 51.28 ▲1.54 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 54.29 ▲4.75 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 97.58 ▲7.27 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 39.95 ▲4.96 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=script | 3.31 | 39.00 |
All Scripts /wp-admin/edit.php?post_type=script | 3.35 | 42.36 |
Add New /wp-admin/post-new.php?post_type=script | 3.43 | 53.38 |
Script Types /wp-admin/edit-tags.php?taxonomy=script_category&post_type=script | 3.31 | 40.31 |
Server storage [IO: ▲0.01MB] [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 |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Code Repository: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,838 ▲103 | 13.21 ▼1.10 | 1.54 ▼0.19 | 41.62 ▼3.37 |
Dashboard /wp-admin | 2,238 ▲50 | 4.87 ▼1.00 | 109.52 ▼7.63 | 43.07 ▼3.36 |
Posts /wp-admin/edit.php | 2,124 ▲53 | 2.04 ▲0.00 | 40.56 ▲3.98 | 34.63 ▼1.53 |
Add New Post /wp-admin/post-new.php | 1,567 ▲33 | 23.55 ▲0.32 | 661.52 ▼41.82 | 60.30 ▲6.12 |
Media Library /wp-admin/upload.php | 1,420 ▲29 | 4.18 ▼0.00 | 101.28 ▲1.76 | 42.83 ▼0.37 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=script | 1,339 | 2.14 | 27.33 | 29.56 |
All Scripts /wp-admin/edit.php?post_type=script | 1,139 | 2.00 | 30.91 | 31.53 |
Add New /wp-admin/post-new.php?post_type=script | 2,331 | 4.38 | 81.94 | 47.93 |
Script Types /wp-admin/edit-tags.php?taxonomy=script_category&post_type=script | 1,294 | 2.13 | 26.88 | 27.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% 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 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 the_post() in wp-content/plugins/code-repository/bare-script.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/code-repository/code-repo.php:68
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Plugin Name: Please specify the plugin name on the first line (
=== code-repository ===
)
code-repository/code-repo.php 92% from 13 tests
The primary PHP file in "Code Repository" version 0.2.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("code-repository.php" instead of "code-repo.php")
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 detected124 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 17 | 40 | 124 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin