Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼293.83ms] Passed 4 tests
This is a short check of server-side resources used by RE Phone CTA
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.03 | 61.13 ▲6.66 |
Dashboard /wp-admin | 3.44 ▲0.04 | 35.96 ▼1.11 |
Posts /wp-admin/edit.php | 3.67 ▲0.03 | 38.58 ▼2.18 |
Add New Post /wp-admin/post-new.php | 6.91 ▼0.06 | 98.28 ▼1,170.11 |
Media Library /wp-admin/upload.php | 3.32 ▲0.03 | 24.52 ▼1.92 |
Add New /wp-admin/post-new.php?post_type=re-phone-cta | 3.62 | 47.04 |
All Items /wp-admin/edit.php?post_type=re-phone-cta | 3.47 | 38.89 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for RE Phone CTA
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,905 ▲157 | 16.27 ▲0.98 | 10.29 ▲4.24 | 2.42 ▲0.12 |
Dashboard /wp-admin | 2,921 ▲60 | 6.04 ▼0.14 | 112.41 ▼13.54 | 179.14 ▲23.82 |
Posts /wp-admin/edit.php | 2,718 ▲33 | 3.10 ▼0.13 | 70.51 ▲7.41 | 151.98 ▲11.93 |
Add New Post /wp-admin/post-new.php | 1,688 ▲27 | 19.30 ▲3.61 | 408.28 ▼13.25 | 188.99 ▲25.07 |
Media Library /wp-admin/upload.php | 1,729 ▲34 | 5.52 ▲0.01 | 120.47 ▼24.72 | 196.90 ▲15.71 |
Add New /wp-admin/post-new.php?post_type=re-phone-cta | 3,256 | 6.89 | 117.44 | 157.42 |
All Items /wp-admin/edit.php?post_type=re-phone-cta | 1,663 | 5.00 | 75.91 | 127.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully
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 everything seems fine, this is not an exhaustive test
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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/re-phone-cta/index.php
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)
No browser issues were found
Optimizations
Plugin configuration 86% 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
These attributes need your attention:
- Screenshots: Add an image for screenshot #1 (CTA setting)
re-phone-cta/index.php 77% from 13 tests
Analyzing the main PHP file in "RE Phone CTA" version 1.1.0
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("re-phone-cta.php" instead of "index.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 188 characters long)
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected1,116 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 62 | 27 | 367 |
CSS | 3 | 44 | 0 | 321 |
PHP | 1 | 35 | 25 | 317 |
PO File | 1 | 59 | 71 | 111 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
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 | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshots/cta_setting.png | 27.63KB | 8.41KB | ▼ 69.57% |
images/phone-ring.png | 0.36KB | 0.37KB | 0.00% |
images/icon.png | 1.43KB | 0.82KB | ▼ 42.75% |