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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼296.82ms] Passed 4 tests
Analyzing server-side resources used by Oribi Analytics
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.10 | 54.67 ▲1.19 |
Dashboard /wp-admin | 3.48 ▲0.08 | 33.32 ▲1.93 |
Posts /wp-admin/edit.php | 3.71 ▲0.07 | 39.13 ▲2.85 |
Add New Post /wp-admin/post-new.php | 6.95 ▼0.02 | 91.35 ▼1,193.22 |
Media Library /wp-admin/upload.php | 3.36 ▲0.07 | 26.41 ▲2.82 |
Oribi Analytics /wp-admin/options-general.php?page=oribi | 3.34 | 22.26 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 2 new options
New WordPress options |
---|
oribi_tracking_capabilities |
oribi_snippet |
Browser metrics Passed 4 tests
Checking browser requirements for Oribi Analytics
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,778 ▲24 | 15.91 ▲0.13 | 5.71 ▼1.35 | 2.22 ▼0.80 |
Dashboard /wp-admin | 2,905 ▲54 | 6.18 ▼0.09 | 116.87 ▼21.95 | 159.03 ▼2.22 |
Posts /wp-admin/edit.php | 2,701 ▲7 | 3.25 ▼0.00 | 64.80 ▼1.30 | 140.41 ▼2.21 |
Add New Post /wp-admin/post-new.php | 1,769 ▲108 | 22.42 ▲6.00 | 415.43 ▲8.31 | 160.00 ▲1.18 |
Media Library /wp-admin/upload.php | 1,711 ▲10 | 5.57 ▲0.04 | 157.67 ▲14.73 | 201.15 ▲12.16 |
Oribi Analytics /wp-admin/options-general.php?page=oribi | 1,248 | 2.41 | 54.00 | 135.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 2 options in the database
- oribi_tracking_capabilities
- oribi_snippet
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for 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
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/oribi-analytics/inc/oribi-admin-settings.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/oribi-analytics/index.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: tracking, ecommerce, analytics, google-analytics, insights
oribi-analytics/index.php 85% from 13 tests
The primary PHP file in "Oribi Analytics" version 3.6.5 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("oribi-analytics.php" instead of "index.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
Success! There were no dangerous files found in this plugin493 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 57 | 16 | 320 |
CSS | 1 | 25 | 0 | 148 |
SVG | 1 | 0 | 0 | 25 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 35.00 |
▷ Minimum class complexity | 35.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 5.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 8 | 100.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected