84% momently

Code Review | Real Time Content Analytics

WordPress plugin Real Time Content Analytics scored 84% from 54 tests.

About plugin

  • Plugin page: momently
  • Plugin version: 1.5.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7.0-5.2.1
  • WordPress version: 6.3.1
  • First release: Jun 24, 2016
  • Latest release: Jun 3, 2019
  • Number of updates: 53
  • Update frequency: every 22.4 days
  • Top authors: momently (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

80+ active / 8,528 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0737.81 ▼6.55
Dashboard /wp-admin3.37 ▲0.0743.91 ▼2.60
Posts /wp-admin/edit.php3.48 ▲0.1347.06 ▼3.68
Add New Post /wp-admin/post-new.php5.95 ▲0.0792.72 ▼7.03
Media Library /wp-admin/upload.php3.29 ▲0.0734.18 ▲1.50
Momently /wp-admin/options-general.php?page=momently-options3.2833.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,849 ▲11413.67 ▼0.711.81 ▼0.3739.24 ▼10.32
Dashboard /wp-admin2,230 ▲395.84 ▲0.9297.48 ▼3.6738.15 ▼10.08
Posts /wp-admin/edit.php2,110 ▲242.03 ▼0.0139.73 ▲3.4333.79 ▲1.59
Add New Post /wp-admin/post-new.php1,566 ▲3118.36 ▼4.77601.86 ▼61.7651.68 ▼2.96
Media Library /wp-admin/upload.php1,412 ▲244.28 ▲0.0996.76 ▼1.5743.10 ▼1.96
Momently /wp-admin/options-general.php?page=momently-options1,1001.7026.2638.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP36433554
CSS290121
JavaScript26049

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 code0.35
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions25
▷ Named functions25100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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