Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▼0.34MB] [CPU: ▼9.51ms] Passed 4 tests
Analyzing server-side resources used by Martins Analytics
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.40 | 5.18 ▼28.25 |
Dashboard /wp-admin | 3.33 ▼0.01 | 49.67 ▼5.16 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 47.91 ▼0.70 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 90.42 ▼3.92 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 34.15 ▲1.08 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Martins Analytics
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲66 | 13.29 ▼1.02 | 1.75 ▲0.21 | 43.48 ▲2.46 |
Dashboard /wp-admin | 2,215 ▲26 | 5.90 ▲0.98 | 107.94 ▼14.42 | 42.00 ▼3.52 |
Posts /wp-admin/edit.php | 2,101 ▲12 | 2.02 ▲0.01 | 39.07 ▲3.23 | 35.85 ▲2.88 |
Add New Post /wp-admin/post-new.php | 1,552 ▲33 | 18.09 ▼4.85 | 603.84 ▼62.81 | 52.20 ▲1.99 |
Media Library /wp-admin/upload.php | 1,394 ▲3 | 4.22 ▲0.04 | 96.86 ▲1.21 | 43.44 ▲0.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
Please fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/martins-analytics/martinsAnalytics.php:148
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: pipeda, stats, ccpa, analytics, statistics...
martins-analytics/martinsAnalytics.php 69% from 13 tests
The entry point to "Martins Analytics" version 1.0.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
- Description: Keep the plugin description shorter than 140 characters (currently 254 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("martins-analytics.php" instead of "martinsAnalytics.php")
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
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 plugin109 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 28 | 18 | 109 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 5.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
There are no PNG files in this plugin