Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▼145.57ms] Passed 4 tests
This is a short check of server-side resources used by Organizing
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.97 ▲0.25 | 38.13 ▲15.81 |
Dashboard /wp-admin | 3.25 ▲0.20 | 46.69 ▲4.50 |
Posts /wp-admin/edit.php | 3.31 ▲0.20 | 45.09 ▲0.81 |
Add New Post /wp-admin/post-new.php | 5.55 ▲0.12 | 84.65 ▼578.71 |
Media Library /wp-admin/upload.php | 3.13 ▲0.13 | 34.09 ▼8.89 |
Categories /wp-admin/edit-tags.php?taxonomy=organizing&post_type=attachment | 3.13 | 30.73 |
Organizing /wp-admin/options-general.php?page=options-organizing | 3.10 | 30.87 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 45 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Organizing
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,689 ▲93 | 15.78 ▼0.24 | 8.93 ▼2.67 | 56.68 ▲6.30 |
Dashboard /wp-admin | 2,980 ▲49 | 5.93 ▼0.09 | 134.75 ▼2.61 | 112.10 ▲1.83 |
Posts /wp-admin/edit.php | 2,749 ▲10 | 2.72 ▲0.02 | 62.51 ▼1.30 | 86.86 ▼1.17 |
Add New Post /wp-admin/post-new.php | 1,682 ▼190 | 18.83 ▼0.31 | 358.35 ▼17.19 | 103.19 ▼6.58 |
Media Library /wp-admin/upload.php | 1,763 ▼44 | 4.98 ▼0.06 | 139.70 ▼3.23 | 121.05 ▼13.18 |
Categories /wp-admin/edit-tags.php?taxonomy=organizing&post_type=attachment | 1,749 | 2.38 | 57.46 | 86.38 |
Organizing /wp-admin/options-general.php?page=options-organizing | 1,048 | 2.10 | 52.17 | 76.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/organizing/templates/admin/metabox.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/organizing/templates/listing.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/organizing/templates/admin/settings.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
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
8 plugin tags: pdf, docs, document library, pdf manager, downloadable pdf...
organizing/organizing.php Passed 13 tests
This is the main PHP file of "Organizing" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
83 characters long description:
Easily create a Document Library and show a filterable listing with download links.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin3,078 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 4 | 0 | 0 | 1,652 |
PHP | 22 | 231 | 672 | 1,039 |
Sass | 10 | 63 | 62 | 304 |
JavaScript | 2 | 19 | 0 | 71 |
Markdown | 1 | 10 | 0 | 11 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 6.15 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 1.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 1 | 7.69% |
Methods | 71 | |
▷ Static methods | 6 | 8.45% |
▷ Public methods | 61 | 85.92% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 14.08% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 7 | |
▷ Global constants | 5 | 71.43% |
▷ Class constants | 2 | 28.57% |
▷ 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 images were found in this plugin