Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼2.75ms] Passed 4 tests
An overview of server-side resources used by Instructables
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 40.21 ▼2.11 |
Dashboard /wp-admin | 3.34 ▲0.04 | 44.38 ▼5.40 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 47.52 ▼0.73 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 93.65 ▼2.75 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 37.29 ▲2.51 |
Instructables Feeds /wp-admin/edit.php?post_type=instructables_sc | 3.31 | 34.23 |
Settings /wp-admin/admin.php?page=instructables_options | 3.23 | 32.76 |
Instructables /wp-admin/admin.php?page=instructables_config | 3.23 | 31.71 |
Add New Instructable Feed /wp-admin/post-new.php?post_type=instructables_sc | 3.31 | 45.49 |
Server storage [IO: ▲4.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Instructables
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,864 ▲107 | 13.24 ▼1.12 | 4.27 ▲2.02 | 40.49 ▼9.78 |
Dashboard /wp-admin | 2,243 ▲55 | 5.82 ▼0.02 | 108.65 ▼6.69 | 87.01 ▲43.29 |
Posts /wp-admin/edit.php | 2,142 ▲50 | 2.02 ▼0.01 | 39.46 ▲2.43 | 35.97 ▲1.79 |
Add New Post /wp-admin/post-new.php | 1,708 ▲166 | 24.71 ▲6.30 | 705.70 ▲106.10 | 55.84 ▲2.29 |
Media Library /wp-admin/upload.php | 1,428 ▲37 | 4.11 ▼0.19 | 100.67 ▲3.52 | 81.37 ▲35.37 |
Instructables Feeds /wp-admin/edit.php?post_type=instructables_sc | 1,098 | 1.93 | 32.71 | 29.21 |
Settings /wp-admin/admin.php?page=instructables_options | 810 | 2.21 | 24.98 | 26.42 |
Instructables /wp-admin/admin.php?page=instructables_config | 896 | 2.14 | 25.75 | 26.78 |
Add New Instructable Feed /wp-admin/post-new.php?post_type=instructables_sc | 1,565 | 2.50 | 48.11 | 58.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
These items require your attention
- 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 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/instructables/button.js.php
- > /wp-content/plugins/instructables/instructables.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 97% 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
These attributes need to be fixed:
- Plugin Name: You should set the name of your plugin on the first line (
=== instructables ===
)
instructables/instructables.php Passed 13 tests
This is the main PHP file of "Instructables" version 2.0.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
66 characters long description:
Display Instructables Projects on your site linking to the source.
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 detected798 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 98 | 119 | 742 |
CSS | 1 | 8 | 3 | 44 |
Markdown | 1 | 6 | 0 | 12 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 65.00 |
▷ Minimum class complexity | 65.00 |
▷ Maximum class complexity | 65.00 |
Average method complexity | 3.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.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 | 24 | |
▷ Static methods | 8 | 33.33% |
▷ Public methods | 24 | 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 | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
10 PNG files occupy 0.96MB with 0.60MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-4.png | 67.59KB | 29.07KB | ▼ 56.99% |
assets/screenshot-2.png | 218.14KB | 74.86KB | ▼ 65.68% |
assets/screenshot-5.png | 65.84KB | 27.44KB | ▼ 58.32% |
assets/banner-772x250.png | 83.97KB | 31.44KB | ▼ 62.56% |
images/robot.png | 98.60KB | 29.30KB | ▼ 70.28% |