Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼140.15ms] Passed 4 tests
Analyzing server-side resources used by All-In-One Intranet
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 33.13 ▲9.85 |
Dashboard /wp-admin | 3.09 ▲0.03 | 48.09 ▼5.83 |
Posts /wp-admin/edit.php | 3.13 ▲0.03 | 47.89 ▲2.67 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.02 | 92.98 ▼549.06 |
Media Library /wp-admin/upload.php | 3.03 ▲0.02 | 30.54 ▼8.36 |
All-In-One Intranet /wp-admin/options-general.php?page=aioi_list_options | 3.00 | 33.82 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
All-In-One Intranet: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,684 ▲88 | 16.24 ▲0.69 | 7.36 ▼0.71 | 52.17 ▲3.37 |
Dashboard /wp-admin | 2,975 ▲41 | 5.86 ▼0.10 | 133.17 ▼21.77 | 103.10 ▼11.54 |
Posts /wp-admin/edit.php | 2,744 ▲8 | 2.70 ▲0.02 | 62.66 ▼9.19 | 88.14 ▲1.36 |
Add New Post /wp-admin/post-new.php | 1,501 ▼171 | 18.81 ▼0.04 | 346.76 ▼24.95 | 104.96 ▼1.82 |
Media Library /wp-admin/upload.php | 1,815 ▲5 | 5.02 ▼0.00 | 144.15 ▲3.23 | 120.42 ▲2.48 |
All-In-One Intranet /wp-admin/options-general.php?page=aioi_list_options | 1,200 | 2.17 | 51.94 | 88.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/all-in-one-intranet/basic_all_in_one_intranet.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: visibility, company, authentication, secure, privacy...
all-in-one-intranet/basic_all_in_one_intranet.php 92% from 13 tests
"All-In-One Intranet" version 1.7.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("all-in-one-intranet.php" instead of "basic_all_in_one_intranet.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin622 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 129 | 38 | 488 |
PO File | 1 | 28 | 32 | 66 |
CSS | 1 | 6 | 1 | 61 |
JavaScript | 1 | 3 | 1 | 7 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 38.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 72.00 |
Average method complexity | 2.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 38 | |
▷ Static methods | 1 | 2.63% |
▷ Public methods | 15 | 39.47% |
▷ Protected methods | 23 | 60.53% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.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
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.20MB with 0.13MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/basic_loginupgrade.png | 48.68KB | 15.91KB | ▼ 67.32% |
img/basic_aioi.png | 48.96KB | 17.04KB | ▼ 65.20% |
img/basic_avatars.png | 60.82KB | 17.00KB | ▼ 72.05% |
img/basic_driveplugin.png | 44.05KB | 16.22KB | ▼ 63.17% |