Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.78MB] [CPU: ▼311.34ms] Passed 4 tests
Analyzing server-side resources used by ACTUS Xfields
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.13 | 55.39 ▲2.40 |
Dashboard /wp-admin | 3.60 ▲0.19 | 40.74 ▲9.06 |
Posts /wp-admin/edit.php | 3.83 ▲0.19 | 43.53 ▲5.89 |
Add New Post /wp-admin/post-new.php | 3.37 ▼3.60 | 30.09 ▼1,250.97 |
Media Library /wp-admin/upload.php | 3.47 ▲0.16 | 24.55 ▼2.67 |
ACTUS /wp-admin/admin.php?page=actus-plugins | 3.47 | 27.74 |
ACTUS Xfields /wp-admin/admin.php?page=actus-xfields | 3.72 | 34.04 |
Server storage [IO: ▲0.78MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 46 new files
Database: no new tables, 1 new option
New WordPress options |
---|
ACTUS_XF_VERSION |
Browser metrics Passed 4 tests
This is an overview of browser requirements for ACTUS Xfields
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,110 ▲384 | 17.86 ▲2.09 | 6.98 ▼0.86 | 2.71 ▲0.11 |
Dashboard /wp-admin | 3,209 ▲351 | 8.25 ▲2.07 | 151.01 ▲12.59 | 182.06 ▲21.20 |
Posts /wp-admin/edit.php | 3,034 ▲346 | 4.72 ▲1.48 | 84.11 ▲20.18 | 154.46 ▲8.32 |
Add New Post /wp-admin/post-new.php | 1,792 ▲131 | 17.65 ▲1.11 | 410.57 ▼15.39 | 198.12 ▲42.25 |
Media Library /wp-admin/upload.php | 1,821 ▲123 | 5.60 ▲0.11 | 114.71 ▼28.92 | 208.76 ▲12.73 |
ACTUS /wp-admin/admin.php?page=actus-plugins | 1,441 | 4.48 | 74.89 | 161.31 |
ACTUS Xfields /wp-admin/admin.php?page=actus-xfields | 1,935 | 4.68 | 75.38 | 144.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 1 option in the database
- ACTUS_XF_VERSION
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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 take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/actus-xfields/includes/actus-plugins.php:7
- > 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 errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Tags: There are too many tags (16 tag instead of maximum 10)
actus-xfields/actus-xfields.php Passed 13 tests
"ACTUS Xfields" version 1.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
82 characters long description:
Create custom fields for your pages and posts, or global options for your website.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected4,482 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 380 | 142 | 1,839 |
CSS | 2 | 267 | 63 | 1,714 |
PHP | 6 | 316 | 158 | 929 |
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.46 |
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 | 27 | |
▷ Named functions | 27 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
29 PNG files occupy 0.58MB with 0.30MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/checkbox1.png | 1.68KB | 0.64KB | ▼ 61.80% |
img/check.png | 2.84KB | 1.23KB | ▼ 56.84% |
img/xfields-logo-white.png | 6.96KB | 3.58KB | ▼ 48.58% |
img/actus_2.png | 7.38KB | 4.82KB | ▼ 34.71% |
img/xfields-logo-light.png | 8.43KB | 3.48KB | ▼ 58.75% |