Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼6.96ms] Passed 4 tests
An overview of server-side resources used by Content Analytics
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.13 | 40.41 ▼0.15 |
Dashboard /wp-admin | 3.43 ▲0.09 | 44.71 ▼14.78 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 46.91 ▲1.01 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 87.07 ▼13.24 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 35.90 ▲0.34 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Content Analytics
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,909 ▲163 | 13.47 ▼0.79 | 7.92 ▲6.32 | 36.77 ▼2.07 |
Dashboard /wp-admin | 2,210 ▲33 | 5.69 ▲0.03 | 88.83 ▼0.49 | 41.34 ▲2.41 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 2.05 ▲0.04 | 39.06 ▲0.39 | 35.94 ▼3.86 |
Add New Post /wp-admin/post-new.php | 6,248 ▲4,731 | 20.92 ▲1.91 | 870.50 ▲426.21 | 82.70 ▲33.07 |
Media Library /wp-admin/upload.php | 1,412 ▲18 | 4.31 ▲0.10 | 101.23 ▲2.24 | 46.55 ▲2.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 5× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/content-analytics/public/partials/content-analytics-public-display.php
- > /wp-content/plugins/content-analytics/admin/partials/content-analytics-admin-display.php
- > /wp-content/plugins/content-analytics/admin/partials/dashboard.php
- > /wp-content/plugins/content-analytics/admin/partials/meta-box.php
- > /wp-content/plugins/content-analytics/admin/partials/settings.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: lingotek, automation, multilingual, content, translation...
content-analytics/content-analytics.php Passed 13 tests
"Content Analytics" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
82 characters long description:
Empowers site administrators by providing insight and analytics into your content.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin667 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 175 | 611 | 454 |
JavaScript | 2 | 25 | 57 | 118 |
CSS | 2 | 5 | 9 | 95 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 4.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 1.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 43 | |
▷ Static methods | 2 | 4.65% |
▷ Public methods | 28 | 65.12% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 15 | 34.88% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin