Benchmarks
Plugin footprint 47% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.22MB] [CPU: ▼10.79ms] Passed 4 tests
Analyzing server-side resources used by ContentStudio
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.87 ▲0.40 | 45.56 ▲3.05 |
Dashboard /wp-admin | 3.52 ▲0.18 | 54.05 ▼14.41 |
Posts /wp-admin/edit.php | 3.64 ▲0.28 | 53.55 ▼3.46 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.22 | 91.87 ▼28.32 |
Media Library /wp-admin/upload.php | 3.44 ▲0.22 | 49.19 ▲10.91 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
Just a few items left to fix
- Illegal file modification detected: 2 files (0.00KB) outside of "wp-content/plugins/contentstudio/" and "wp-content/uploads/"
- (new file) "wp-content/plugins/contentstudio/assets/icon-256\303\227256.png"
- (new file) "wp-content/plugins/contentstudio/assets/icon-128\303\227128.png"
Filesystem: 18 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_seo |
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
ContentStudio: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲61 | 14.73 ▲0.37 | 1.89 ▲0.35 | 44.05 ▲2.13 |
Dashboard /wp-admin | 2,211 ▲34 | 5.59 ▼0.09 | 87.09 ▼0.43 | 78.89 ▲37.03 |
Posts /wp-admin/edit.php | 2,119 ▲19 | 1.97 ▲0.02 | 36.92 ▼4.54 | 33.77 ▼5.30 |
Add New Post /wp-admin/post-new.php | 1,694 ▲166 | 21.81 ▼1.25 | 769.87 ▲152.78 | 68.21 ▲19.19 |
Media Library /wp-admin/upload.php | 1,416 ▲13 | 4.25 ▲0.07 | 102.84 ▲4.66 | 79.65 ▲32.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method ContentStudio::uninstall() should not be called statically
- The uninstall procedure failed, leaving 1 table in the database
- wp_seo
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- 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
Everything seems fine, however 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
Almost there! Just fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/contentstudio/page.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/contentstudio/contentstudio-plugin.php:31
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
1 plugin tags: contentstudio provides you with powerful blogging social media tools to keep your audience hooked by streamlining the process for you to discover and share engaging content on multiple blogging social media networks
contentstudio/contentstudio-plugin.php 85% from 13 tests
"ContentStudio" version 1.2.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 219 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("contentstudio.php" instead of "contentstudio-plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin1,782 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 235 | 283 | 1,206 |
CSS | 3 | 0 | 3 | 233 |
LESS | 3 | 20 | 2 | 230 |
SVG | 3 | 0 | 2 | 85 |
JavaScript | 2 | 6 | 14 | 28 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 169.00 |
▷ Minimum class complexity | 169.00 |
▷ Maximum class complexity | 169.00 |
Average method complexity | 4.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.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 | 49 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 48 | 97.96% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.04% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.21MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-772x250.png | 57.28KB | 17.67KB | ▼ 69.15% |
assets/img/logo.png | 13.04KB | 5.99KB | ▼ 54.05% |
assets/icon-256×256.png | 5.91KB | 2.96KB | ▼ 49.85% |
assets/banner-1544x500.png | 136.01KB | 38.25KB | ▼ 71.88% |
assets/icon-128×128.png | 2.94KB | 1.55KB | ▼ 47.11% |