Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.35MB] [CPU: ▼2.56ms] Passed 4 tests
Server-side resources used by Nepirity Analytics
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 45.31 ▲0.01 |
Dashboard /wp-admin | 3.72 ▲0.42 | 52.91 ▼5.38 |
Posts /wp-admin/edit.php | 3.77 ▲0.42 | 60.42 ▲7.91 |
Add New Post /wp-admin/post-new.php | 6.30 ▲0.42 | 88.70 ▼11.69 |
Media Library /wp-admin/upload.php | 3.64 ▲0.41 | 43.85 ▲6.83 |
Server storage [IO: ▲1.16MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 81 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Nepirity Analytics
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲44 | 14.23 ▼0.40 | 1.64 ▼0.23 | 42.66 ▼2.27 |
Dashboard /wp-admin | 2,211 ▲34 | 5.52 ▼0.14 | 88.88 ▼13.35 | 38.70 ▼6.26 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 2.02 ▲0.02 | 38.80 ▲1.24 | 35.35 ▲1.26 |
Add New Post /wp-admin/post-new.php | 1,539 ▲11 | 22.95 ▼0.05 | 701.23 ▲16.31 | 50.42 ▼13.06 |
Media Library /wp-admin/upload.php | 1,416 ▲13 | 4.23 ▲0.07 | 92.98 ▼14.10 | 42.79 ▼7.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 8× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'jsonrpc\\JsonRpcBase' not found in wp-content/plugins/nepirity-analytics/sdk/classes/account.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function NP() in wp-content/plugins/nepirity-analytics/templates/admin/settings/general.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function nepirity\\add_action() in wp-content/plugins/nepirity-analytics/modules/admin.php:12
- > PHP Fatal error
Uncaught Error: Class 'jsonrpc\\JsonRpcBase' not found in wp-content/plugins/nepirity-analytics/sdk/classes/view.php:5
- > PHP Fatal error
Uncaught Error: Class 'jsonrpc\\JsonRpcBase' not found in wp-content/plugins/nepirity-analytics/sdk/classes/plugin.php:4
- > PHP Fatal error
Uncaught Error: Class 'JsonRPC\\Request\\RequestParser' not found in wp-content/plugins/nepirity-analytics/sdk/classes/libs/vendor/fguillot/json-rpc/src/JsonRPC/Request/BatchRequestParser.php:11
- > PHP Fatal error
Uncaught Error: Class 'jsonrpc\\JsonRpcBase' not found in wp-content/plugins/nepirity-analytics/sdk/classes/google.php:5
- > PHP Fatal error
Uncaught Error: Class 'jsonrpc\\JsonRpcBase' not found in wp-content/plugins/nepirity-analytics/sdk/classes/support.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% 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
3 plugin tags: google analytics, data analytics, analytics
nepirity-analytics/nepirity-analytics.php 92% from 13 tests
"Nepirity Analytics" version 1.1.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected26,225 lines of code in 63 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 3,772 | 2,401 | 15,630 |
CSS | 6 | 1,239 | 57 | 7,100 |
PHP | 46 | 787 | 1,362 | 2,982 |
SVG | 1 | 0 | 0 | 288 |
PO File | 1 | 65 | 72 | 174 |
JSON | 2 | 0 | 0 | 51 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 9.36 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 57.00 |
Average method complexity | 2.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 38 | |
▷ Abstract classes | 1 | 2.63% |
▷ Concrete classes | 37 | 97.37% |
▷ Final classes | 1 | 2.70% |
Methods | 275 | |
▷ Static methods | 45 | 16.36% |
▷ Public methods | 223 | 81.09% |
▷ Protected methods | 20 | 7.27% |
▷ Private methods | 32 | 11.64% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 26 | |
▷ Global constants | 5 | 19.23% |
▷ Class constants | 21 | 80.77% |
▷ Public constants | 21 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
templates/css/images/ui-icons_777620_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
templates/css/images/ui-icons_777777_256x240.png | 6.83KB | 4.17KB | ▼ 38.92% |
templates/css/images/ui-icons_ffffff_256x240.png | 6.15KB | 4.17KB | ▼ 32.13% |
templates/img/select_graph_arrow.png | 0.17KB | 0.18KB | 0.00% |
templates/css/images/ui-icons_555555_256x240.png | 6.82KB | 4.17KB | ▼ 38.82% |