Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.70ms] Passed 4 tests
Server-side resources used by TutorMate
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 44.29 ▲7.90 |
Dashboard /wp-admin | 3.32 ▼0.03 | 42.11 ▼20.26 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 46.84 ▲0.32 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 87.61 ▼12.64 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.79 ▲1.77 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 40 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for TutorMate
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.23 ▼0.06 | 1.64 ▼0.03 | 38.35 ▼3.45 |
Dashboard /wp-admin | 2,195 ▲15 | 5.50 ▼0.14 | 80.64 ▼3.87 | 38.24 ▼0.61 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.97 ▼0.06 | 40.60 ▲2.76 | 34.75 ▼1.41 |
Add New Post /wp-admin/post-new.php | 1,526 ▼9 | 23.09 ▼0.25 | 644.34 ▼10.70 | 49.29 ▼8.04 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.19 ▲0.01 | 98.85 ▼9.27 | 41.94 ▼6.52 |
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
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- 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)
Everything seems fine, however this is by no means 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
The following issues need your attention
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'AwesomeMotive\\WPContentImporter2\\WXRImporter' not found in wp-content/plugins/tutormate/lib/awesomemotive/src/Importer.php:10
- > PHP Fatal error
Uncaught Error: Class 'AwesomeMotive\\WPContentImporter2\\WPImporterLogger' not found in wp-content/plugins/tutormate/lib/awesomemotive/src/WPImporterLoggerCLI.php:4
- > PHP Fatal error
Uncaught Error: Class 'WP_Importer' not found in wp-content/plugins/tutormate/lib/awesomemotive/src/WXRImporter.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 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
4 plugin tags: import, content, demo, data
tutormate/tutormate.php Passed 13 tests
The entry point to "TutorMate" version 1.0.5 is a PHP file that has certain tags in its header comment area
54 characters long description:
Companion demo importer plugin for TutorStarter theme.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin5,211 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 28 | 1,185 | 2,288 | 4,259 |
CSS | 2 | 174 | 2 | 951 |
JavaScript | 1 | 0 | 1 | 1 |
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.40 |
Average class complexity | 30.65 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 290.00 |
Average method complexity | 4.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 23 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 23 | 100.00% |
▷ Final classes | 1 | 4.35% |
Methods | 213 | |
▷ Static methods | 39 | 18.31% |
▷ Public methods | 147 | 69.01% |
▷ Protected methods | 39 | 18.31% |
▷ Private methods | 27 | 12.68% |
Functions | 4 | |
▷ Named functions | 1 | 25.00% |
▷ Anonymous functions | 3 | 75.00% |
Constants | 5 | |
▷ Global constants | 3 | 60.00% |
▷ Class constants | 2 | 40.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/logo@2x.png | 5.22KB | 2.45KB | ▼ 53.20% |
assets/images/qubely.png | 0.95KB | 0.84KB | ▼ 11.83% |
assets/images/qubely-not-used.png | 0.85KB | 1.06KB | 0.00% |
assets/images/elementor.png | 0.16KB | 0.18KB | 0.00% |
assets/images/tutor-starter-logo.png | 2.71KB | 1.43KB | ▼ 47.23% |