Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.17ms] Passed 4 tests
Analyzing server-side resources used by Kolossum - cdnJS for Wordpress
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 41.06 ▲1.76 |
Dashboard /wp-admin | 3.33 ▲0.02 | 48.95 ▼7.77 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 51.08 ▼1.94 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 90.52 ▼8.72 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 41.33 ▲6.30 |
wpCdnKoloss /wp-admin/themes.php?page=wpcdnkoloss/admin/tpl/view.php | 3.27 | 33.79 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 13 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_wpcdnkoloss_files |
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Kolossum - cdnJS for Wordpress
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲18 | 14.22 ▼0.34 | 1.61 ▼0.73 | 39.65 ▼5.62 |
Dashboard /wp-admin | 2,213 ▲33 | 5.66 ▼0.02 | 93.39 ▲6.30 | 41.99 ▼2.15 |
Posts /wp-admin/edit.php | 2,115 ▲12 | 2.03 ▲0.02 | 38.69 ▼0.50 | 36.33 ▼3.10 |
Add New Post /wp-admin/post-new.php | 1,540 ▲14 | 23.32 ▲0.03 | 673.25 ▼52.65 | 56.11 ▲2.00 |
Media Library /wp-admin/upload.php | 1,412 ▲15 | 4.29 ▲0.07 | 111.16 ▲8.72 | 47.60 ▼1.49 |
wpCdnKoloss /wp-admin/themes.php?page=wpcdnkoloss/admin/tpl/view.php | 1,037 | 1.69 | 25.05 | 28.83 |
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 does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WpCdnKolossAdmin' not found in wp-content/plugins/wpcdnkoloss/admin/tpl/view.php:3
- > PHP Fatal error
Uncaught Error: Class 'WpCdnKoloss' not found in wp-content/plugins/wpcdnkoloss/includes/WpCdnKolossAdmin.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wpcdnkoloss/includes/WpCdnKoloss.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: cdnjs, cdn
wpcdnkoloss/kolossum-wpcdnkoloss.php 92% from 13 tests
The principal PHP file in "Kolossum - cdnJS for Wordpress" v. 0.5 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("wpcdnkoloss.php" instead of "kolossum-wpcdnkoloss.php")
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
Success! There were no dangerous files found in this plugin945 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 113 | 204 | 467 |
JavaScript | 1 | 75 | 116 | 338 |
CSS | 1 | 37 | 4 | 140 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 7.80 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.00 |
▷ 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 | 34 | |
▷ Static methods | 2 | 5.88% |
▷ Public methods | 34 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin