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
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼7.67ms] Passed 4 tests
This is a short check of server-side resources used by Functionality
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 41.96 ▼10.48 |
Dashboard /wp-admin | 3.36 ▲0.01 | 53.30 ▼11.55 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 51.16 ▼3.19 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 89.83 ▼5.45 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 36.05 ▼0.74 |
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: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Functionality: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲47 | 14.17 ▼0.01 | 1.80 ▼0.08 | 44.74 ▲1.96 |
Dashboard /wp-admin | 2,199 ▲19 | 5.65 ▼0.00 | 81.00 ▼10.61 | 39.62 ▼6.69 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.05 ▲0.07 | 36.07 ▼5.07 | 33.52 ▼4.37 |
Add New Post /wp-admin/post-new.php | 1,529 ▼11 | 17.45 ▼0.57 | 672.48 ▲59.08 | 50.02 ▼6.25 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.20 ▼0.01 | 94.20 ▼10.50 | 43.47 ▼0.59 |
Edit Functions /wp-admin/functionality-functions.php | 26 | 0.44 | 0.08 | 15.18 |
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
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'Functionality_File' not found in wp-content/plugins/functionality/php/class-styles.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/functionality/functionality.php:67
- > PHP Fatal error
Uncaught Error: Class 'Functionality_File' not found in wp-content/plugins/functionality/php/class-functions.php:6
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
- > GET request to /wp-admin/functionality-functions.php
- > Network (severe)
wp-admin/functionality-functions.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: functionality, functionsphp
functionality/functionality.php Passed 13 tests
Analyzing the main PHP file in "Functionality" version 2.0.0
123 characters long description:
Makes it easy to create and edit your own functionality plugin for pasting snippets instead of in the theme's functions.php
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
Everything looks great! No dangerous files found in this plugin294 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 112 | 245 | 260 |
PO File | 1 | 7 | 9 | 34 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 8.25 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 27 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 25 | 92.59% |
▷ Protected methods | 1 | 3.70% |
▷ Private methods | 1 | 3.70% |
Functions | 2 | |
▷ Named functions | 2 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin