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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼4.97ms] Passed 4 tests
Analyzing server-side resources used by Real Time Content Analytics
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 37.81 ▼6.55 |
Dashboard /wp-admin | 3.37 ▲0.07 | 43.91 ▼2.60 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 47.06 ▼3.68 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 92.72 ▼7.03 |
Media Library /wp-admin/upload.php | 3.29 ▲0.07 | 34.18 ▲1.50 |
Momently /wp-admin/options-general.php?page=momently-options | 3.28 | 33.36 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Real Time Content Analytics: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,849 ▲114 | 13.67 ▼0.71 | 1.81 ▼0.37 | 39.24 ▼10.32 |
Dashboard /wp-admin | 2,230 ▲39 | 5.84 ▲0.92 | 97.48 ▼3.67 | 38.15 ▼10.08 |
Posts /wp-admin/edit.php | 2,110 ▲24 | 2.03 ▼0.01 | 39.73 ▲3.43 | 33.79 ▲1.59 |
Add New Post /wp-admin/post-new.php | 1,566 ▲31 | 18.36 ▼4.77 | 601.86 ▼61.76 | 51.68 ▼2.96 |
Media Library /wp-admin/upload.php | 1,412 ▲24 | 4.28 ▲0.09 | 96.76 ▼1.57 | 43.10 ▼1.96 |
Momently /wp-admin/options-general.php?page=momently-options | 1,100 | 1.70 | 26.26 | 38.43 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/momently/momently.php:408
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/momently/templates/settings.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/momently/templates/dashboard.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 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
4 plugin tags: real-time, content analytics, stats, analytics
momently/momently.php Passed 13 tests
The main file in "Real Time Content Analytics" v. 1.5.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
73 characters long description:
Real time content analytics dashboard for digital publishers and bloggers
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
No dangerous file extensions were detected724 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 64 | 33 | 554 |
CSS | 2 | 9 | 0 | 121 |
JavaScript | 2 | 6 | 0 | 49 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
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 | 25 | |
▷ Named functions | 25 | 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 images were found in this plugin