Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.90MB] [CPU: ▼35.34ms] Passed 4 tests
Server-side resources used by Styles: TwentyFifteen
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 35.61 ▼6.11 |
Dashboard /wp-admin | 3.04 ▼0.26 | 23.17 ▼25.93 |
Posts /wp-admin/edit.php | 3.04 ▼0.32 | 22.60 ▼24.92 |
Add New Post /wp-admin/post-new.php | 3.04 ▼2.85 | 25.55 ▼83.01 |
Media Library /wp-admin/upload.php | 3.04 ▼0.19 | 24.74 ▼7.51 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Styles: TwentyFifteen
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲99 | 13.67 ▼0.96 | 1.91 ▲0.07 | 39.71 ▼4.63 |
Dashboard /wp-admin | 2,215 ▲24 | 5.80 ▼0.08 | 94.71 ▼3.39 | 42.43 ▲0.01 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.00 ▼0.01 | 35.83 ▲0.86 | 33.42 ▼0.86 |
Add New Post /wp-admin/post-new.php | 1,542 ▲28 | 23.36 ▲5.77 | 645.52 ▲9.07 | 59.47 ▲8.61 |
Media Library /wp-admin/upload.php | 1,397 ▲12 | 4.23 ▲0.03 | 95.71 ▼7.49 | 41.13 ▼5.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/styles-twentyfifteen/classes/styles-child-notices/styles-child-notices.php+271
compact(): Undefined variable: required_version
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
The following issues need your attention
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/styles-twentyfifteen/classes/styles-child-notices/styles-child-notices.php:42
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/styles-twentyfifteen/classes/styles-child-notices/styles-child-notices.php:42
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
styles-twentyfifteen/plugin.php 85% from 13 tests
Analyzing the main PHP file in "Styles: TwentyFifteen" version 1.0
You should first fix the following items:
- Description: The description should be shorter than 140 characters (currently 226 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("styles-twentyfifteen.php" instead of "plugin.php")
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
Good job! No executable or dangerous file extensions detected620 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 1 | 15 | 0 | 377 |
PHP | 2 | 65 | 115 | 179 |
Markdown | 1 | 26 | 0 | 46 |
JavaScript | 1 | 5 | 3 | 15 |
CSS | 1 | 0 | 1 | 3 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 33.00 |
▷ Minimum class complexity | 33.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 3.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin