Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.12MB] [CPU: ▼3.52ms] Passed 4 tests
Analyzing server-side resources used by Style Buddy
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 56.08 ▲12.62 |
Dashboard /wp-admin | 3.41 ▲0.11 | 47.14 ▼6.69 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 46.89 ▲0.03 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 90.45 ▼3.27 |
Media Library /wp-admin/upload.php | 3.34 ▲0.10 | 33.49 ▼4.16 |
Style Buddy /wp-admin/options-general.php?page=stylebuddy_options_page | 3.30 | 29.44 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
stylebuddy |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Style Buddy
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲33 | 13.25 ▼1.41 | 1.73 ▼0.54 | 37.47 ▼13.56 |
Dashboard /wp-admin | 2,207 ▲19 | 5.03 ▼0.87 | 104.75 ▼11.02 | 38.33 ▼6.26 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 2.00 ▼0.01 | 37.31 ▼1.47 | 38.02 ▼2.91 |
Add New Post /wp-admin/post-new.php | 6,286 ▲4,742 | 26.00 ▲7.55 | 891.46 ▲260.55 | 58.66 ▲2.12 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.22 ▼0.00 | 102.90 ▼4.53 | 42.39 ▼0.03 |
Style Buddy /wp-admin/options-general.php?page=stylebuddy_options_page | 934 | 1.84 | 27.15 | 28.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- stylebuddy
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/style-buddy/style-buddy.php:28
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: css, load css, page, load javascript, javascript
style-buddy/style-buddy.php Passed 13 tests
The main file in "Style Buddy" v. 1.1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
134 characters long description:
Add custom css and javascript to a page via the WordPress administration panel. Code is only loaded on the page to which it was added.
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
There were no executable files found in this plugin525 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 106 | 115 | 525 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 42.00 |
▷ Minimum class complexity | 26.00 |
▷ Maximum class complexity | 58.00 |
Average method complexity | 4.57 |
▷ 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 | 23 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 23 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
No PNG images were found in this plugin