Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.13MB] [CPU: ▼8.92ms] Passed 4 tests
Analyzing server-side resources used by Alkane Code
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.14 | 36.84 ▼2.31 |
Dashboard /wp-admin | 3.45 ▲0.14 | 48.66 ▲0.27 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 46.67 ▲4.17 |
Add New Post /wp-admin/post-new.php | 4.94 ▼0.95 | 57.50 ▼35.29 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 34.94 ▲1.66 |
Alkane Code /wp-admin/options-general.php?page=alkanecode_settings_page | 3.32 | 29.32 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 206 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Alkane Code
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,879 ▲118 | 13.49 ▼1.09 | 13.46 ▲11.88 | 44.14 ▲3.98 |
Dashboard /wp-admin | 2,199 ▲22 | 5.59 ▼0.07 | 93.28 ▲4.54 | 42.36 ▲1.67 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.95 ▲0.01 | 37.12 ▲0.01 | 32.77 ▼2.52 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.23 ▲0.12 | 660.04 ▼0.96 | 53.84 ▼8.96 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.24 ▲0.09 | 93.82 ▼2.91 | 40.16 ▼2.02 |
Alkane Code /wp-admin/options-general.php?page=alkanecode_settings_page | 1,426 | 2.03 | 24.57 | 30.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=alkanecode_settings_page
- > Notice in wp-content/plugins/alkanecode/alkanecode.php+450
Trying to access array offset on value of type bool
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
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
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: enlighter, syntax highlighter, prism, code snippets, code editor...
alkanecode/alkanecode.php Passed 13 tests
The main PHP script in "Alkane Code" version 1.0.9 is automatically included on every request by WordPress
53 characters long description:
A TinyMCE code editor with Prism syntax highlighting.
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
There were no executable files found in this plugin871 lines of code in 195 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 182 | 67 | 27 | 458 |
PHP | 2 | 89 | 67 | 365 |
SVG | 1 | 0 | 1 | 29 |
CSS | 10 | 4 | 14 | 19 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 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 | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin