Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.56MB] [CPU: ▼16.56ms] Passed 4 tests
Server-side resources used by GitSyllabus
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 41.83 ▼0.42 |
Dashboard /wp-admin | 3.43 ▲0.13 | 49.39 ▼5.13 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 53.67 ▲2.79 |
Add New Post /wp-admin/post-new.php | 3.27 ▼2.61 | 38.48 ▼59.40 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 36.17 ▼1.30 |
All Syllabi /wp-admin/edit.php?post_type=gitsyllabus_syllabus | 3.39 | 37.80 |
Add New /wp-admin/post-new.php?post_type=gitsyllabus_syllabus | 3.27 | 35.21 |
GitSyllabus /wp-admin/options-general.php?page=git-syllabus | 3.30 | 34.46 |
Server storage [IO: ▲0.06MB] [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: 1 file (4.00KB) outside of "wp-content/plugins/gitsyllabus/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for GitSyllabus
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,887 ▲126 | 13.70 ▼0.66 | 2.07 ▲0.30 | 44.61 ▲0.01 |
Dashboard /wp-admin | 2,265 ▲62 | 4.96 ▼0.90 | 106.31 ▼5.07 | 40.45 ▼1.24 |
Posts /wp-admin/edit.php | 2,144 ▲44 | 2.10 ▲0.09 | 39.75 ▲4.03 | 33.58 ▼1.30 |
Add New Post /wp-admin/post-new.php | 1,552 ▲12 | 18.40 ▲0.19 | 663.66 ▲24.07 | 53.08 ▼17.97 |
Media Library /wp-admin/upload.php | 1,444 ▲44 | 4.24 ▲0.08 | 108.08 ▲7.32 | 48.84 ▼0.52 |
All Syllabi /wp-admin/edit.php?post_type=gitsyllabus_syllabus | 1,105 | 2.00 | 36.00 | 29.54 |
Add New /wp-admin/post-new.php?post_type=gitsyllabus_syllabus | 1,574 | 2.64 | 56.38 | 57.17 |
GitSyllabus /wp-admin/options-general.php?page=git-syllabus | 842 | 1.91 | 24.42 | 25.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/post-new.php?post_type=gitsyllabus_syllabus
- > Notice in wp-content/plugins/gitsyllabus/gitsyllabus.php+120
Undefined index: gitsyllabus_nonce
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=git-syllabus
- > Notice in wp-content/plugins/gitsyllabus/gitsyllabus.php+335
Trying to access array offset on value of type bool
- > GET request to /wp-admin/options-general.php?page=git-syllabus
- > Notice in wp-content/plugins/gitsyllabus/gitsyllabus.php+321
Undefined index: code
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/gitsyllabus/gitsyllabus.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gitsyllabus/gitsyllabus.php:22
- > PHP Warning
include_once(): Failed opening 'ABSPATHWPINC/class-http.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/gitsyllabus/gitsyllabus.php on line 16
- > PHP Warning
Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/gitsyllabus/gitsyllabus.php on line 16
- > PHP Warning
include_once(ABSPATHWPINC/class-http.php): failed to open stream: No such file or directory in wp-content/plugins/gitsyllabus/gitsyllabus.php on line 16
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were 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
Please fix the following attributes:
- Plugin Name: Please specify the plugin name on the first line (
=== gitsyllabus ===
)
gitsyllabus/gitsyllabus.php Passed 13 tests
The main PHP file in "GitSyllabus" ver. 0.1 adds more information about the plugin and also serves as the entry point for this plugin
53 characters long description:
A tool to move syllabus data from WordPress to GitHub
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected657 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 222 | 80 | 642 |
Markdown | 2 | 2 | 0 | 15 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 10.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 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 | 27 | |
▷ Named functions | 27 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected