Benchmarks
Plugin footprint 83% 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.07MB] [CPU: ▼4.50ms] Passed 4 tests
Server-side resources used by wp-tutorial-maker
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 44.43 ▲2.96 |
Dashboard /wp-admin | 3.39 ▲0.08 | 48.44 ▼4.61 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 46.13 ▼3.42 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 100.00 ▼9.30 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 36.76 ▼0.65 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for wp-tutorial-maker
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲56 | 14.26 ▲0.02 | 1.78 ▲0.06 | 44.19 ▲2.27 |
Dashboard /wp-admin | 2,218 ▲15 | 5.84 ▲0.87 | 96.64 ▼11.28 | 39.59 ▼5.66 |
Posts /wp-admin/edit.php | 2,097 ▼6 | 1.99 ▼0.05 | 33.79 ▼10.33 | 34.73 ▼1.55 |
Add New Post /wp-admin/post-new.php | 1,526 ▼3 | 17.68 ▲0.07 | 610.72 ▼7.57 | 50.39 ▲1.42 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.27 ▲0.05 | 104.61 ▲4.76 | 41.98 ▼2.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, 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
Please fix the following items
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
require_once(/tmp/wordpress-tests-lib/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/wp-tutorial-maker/tests/bootstrap.php on line 17
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/wp-tutorial-maker/tests/test_wp_tutorial_maker_tests.php:8
- > PHP Fatal error
require_once(): Failed opening required '/tmp/wordpress-tests-lib/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-tutorial-maker/tests/bootstrap.php on line 17
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/wp-tutorial-maker/tests/test_wp_tutorial_maker_admin_tests.php:8
- > PHP Warning
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 Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: admin, links to posts, sorting, posts reference, tutorial...
wp-tutorial-maker/wp-tutorial-maker.php Passed 13 tests
The entry point to "wp-tutorial-maker" version 1.5 is a PHP file that has certain tags in its header comment area
58 characters long description:
Plugin to convert categories to Tutorial based categories.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected859 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 226 | 369 | 569 |
Bourne Shell | 1 | 28 | 18 | 120 |
Markdown | 1 | 23 | 0 | 55 |
PO File | 1 | 17 | 42 | 54 |
CSS | 2 | 0 | 2 | 26 |
XML | 1 | 2 | 0 | 20 |
JavaScript | 1 | 4 | 3 | 15 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 9.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 2.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 6 | 15.38% |
▷ Public methods | 34 | 87.18% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 12.82% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 6 | 85.71% |
▷ Class constants | 1 | 14.29% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin