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.38MB] [CPU: ▼126.24ms] Passed 4 tests
An overview of server-side resources used by OSA Content
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.16 ▲0.44 | 45.54 ▲24.11 |
Dashboard /wp-admin | 3.47 ▲0.41 | 60.86 ▲22.20 |
Posts /wp-admin/edit.php | 3.52 ▲0.42 | 60.56 ▲16.12 |
Add New Post /wp-admin/post-new.php | 5.77 ▲0.34 | 103.32 ▼544.63 |
Media Library /wp-admin/upload.php | 3.35 ▲0.34 | 47.91 ▲1.35 |
Dokumenty /wp-admin/edit.php?post_type=osa_document | 3.45 | 54.01 |
Add New /wp-admin/post-new.php?post_type=osa_document | 3.55 | 60.11 |
Add New /wp-admin/post-new.php?post_type=osa_series | 3.54 | 60.33 |
Jednostki /wp-admin/edit.php?post_type=osa_unit | 3.45 | 47.51 |
Serie /wp-admin/edit.php?post_type=osa_series | 3.45 | 45.15 |
Wtyczka OSA /wp-admin/tools.php?page=osa | 3.32 | 46.60 |
Add New /wp-admin/post-new.php?post_type=osa_collection | 3.54 | 59.73 |
Zbiory /wp-admin/edit.php?post_type=osa_collection | 3.45 | 47.89 |
Add New /wp-admin/post-new.php?post_type=osa_unit | 3.55 | 60.90 |
Server storage [IO: ▲0.06MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for OSA Content
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,840 ▲244 | 16.24 ▲0.59 | 8.11 ▼2.65 | 46.06 ▲0.62 |
Dashboard /wp-admin | 3,115 ▲181 | 5.95 ▼0.03 | 149.51 ▼4.12 | 107.69 ▲1.81 |
Posts /wp-admin/edit.php | 2,884 ▲145 | 2.74 ▲0.03 | 67.65 ▲2.70 | 90.81 ▲2.02 |
Add New Post /wp-admin/post-new.php | 1,710 ▲38 | 21.39 ▲2.47 | 288.86 ▼145.47 | 105.52 ▲1.42 |
Media Library /wp-admin/upload.php | 1,893 ▲86 | 5.02 ▲0.01 | 164.69 ▼1.87 | 122.15 ▲6.14 |
Dokumenty /wp-admin/edit.php?post_type=osa_document | 1,551 | 2.65 | 80.59 | 75.19 |
Add New /wp-admin/post-new.php?post_type=osa_document | 3,200 | 9.04 | 217.97 | 144.15 |
Add New /wp-admin/post-new.php?post_type=osa_series | 3,197 | 8.91 | 241.41 | 139.79 |
Jednostki /wp-admin/edit.php?post_type=osa_unit | 1,551 | 2.64 | 64.19 | 69.38 |
Serie /wp-admin/edit.php?post_type=osa_series | 1,551 | 2.65 | 62.70 | 73.61 |
Wtyczka OSA /wp-admin/tools.php?page=osa | 1,329 | 2.10 | 52.61 | 80.85 |
Add New /wp-admin/post-new.php?post_type=osa_collection | 3,200 | 8.25 | 230.99 | 139.28 |
Zbiory /wp-admin/edit.php?post_type=osa_collection | 1,548 | 2.65 | 69.95 | 69.95 |
Add New /wp-admin/post-new.php?post_type=osa_unit | 3,204 | 8.34 | 219.75 | 144.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > User notice in wp-includes/functions.php+5663
wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'OSA_Data' not found in wp-content/plugins/osa-content/model/class-osa-document.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/osa-content/osa-content.php:19
- > PHP Fatal error
Uncaught Error: Class 'OSA_Data' not found in wp-content/plugins/osa-content/model/class-osa-series.php:3
- > PHP Fatal error
Uncaught Error: Class 'OSA_Data' not found in wp-content/plugins/osa-content/model/class-osa-collection.php:3
- > PHP Fatal error
Uncaught Error: Class 'OSA_Data' not found in wp-content/plugins/osa-content/model/class-osa-unit.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/osa-content/theme/single.php:12
- > 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 on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
No plugin tags provided
osa-content/osa-content.php 85% from 13 tests
This is the main PHP file of "OSA Content" version 0.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 233 characters long)
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 detected1,350 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 290 | 84 | 1,350 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 16.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 60.00 |
Average method complexity | 2.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 1 | 12.50% |
▷ Concrete classes | 7 | 87.50% |
▷ Final classes | 0 | 0.00% |
Methods | 88 | |
▷ Static methods | 8 | 9.09% |
▷ Public methods | 51 | 57.95% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 37 | 42.05% |
Functions | 8 | |
▷ Named functions | 5 | 62.50% |
▷ Anonymous functions | 3 | 37.50% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
There are no PNG files in this plugin