Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼176.46ms] Passed 4 tests
A check of server-side resources used by PlusNarrative Admin Theme
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.02 | 35.18 ▼6.67 |
Dashboard /wp-admin | 3.05 ▼0.01 | 41.10 ▼9.97 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 49.84 ▼0.40 |
Add New Post /wp-admin/post-new.php | 5.43 ▲0.00 | 94.65 ▼688.79 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 35.69 ▲4.25 |
Server storage [IO: ▲0.13MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by PlusNarrative Admin Theme
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,594 ▼1,002 | 15.63 ▼0.10 | 8.80 ▼3.10 | 55.98 ▲8.05 |
Dashboard /wp-admin | 1,881 ▼1,053 | 5.57 ▼0.59 | 151.33 ▼26.82 | 84.57 ▼34.52 |
Posts /wp-admin/edit.php | 2,714 ▼25 | 2.70 ▼0.02 | 73.62 ▲2.00 | 89.93 ▼3.04 |
Add New Post /wp-admin/post-new.php | 1,596 ▼87 | 21.42 ▲3.13 | 302.02 ▼140.12 | 110.82 ▼2.33 |
Media Library /wp-admin/upload.php | 1,782 ▼25 | 5.00 ▼0.02 | 161.22 ▼16.61 | 113.79 ▼7.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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 errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/plusnarrative-admin-theme/pn-admin-theme.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 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
Attributes that require attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (*Dashboard*), #2 (*Login Page*)
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== plusnarrative-admin-theme ===
)
plusnarrative-admin-theme/pn-admin-theme.php 92% from 13 tests
The primary PHP file in "PlusNarrative Admin Theme" version 1.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("plusnarrative-admin-theme.php" instead of "pn-admin-theme.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected129 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 26 | 21 | 95 |
CSS | 1 | 0 | 0 | 34 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.08 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.13MB with 0.06MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/plusnarrative-logo-full.png | 5.67KB | 3.86KB | ▼ 31.94% |
screenshot-1.png | 75.20KB | 24.52KB | ▼ 67.40% |
screenshot-2.png | 27.30KB | 11.34KB | ▼ 58.45% |
img/plusnarrative-logo.png | 22.25KB | 13.05KB | ▼ 41.36% |