84% momentum

Code Review | Momentum

WordPress plugin Momentum scored84%from 54 tests.

About plugin

  • Plugin page: momentum
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.7
  • WordPress version: 6.3.1
  • First release: Sep 23, 2016
  • Latest release: Jan 1, 2017
  • Number of updates: 17
  • Update frequency: every 6.1 days
  • Top authors: garyeagle001 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,240 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.14ms] Passed 4 tests

A check of server-side resources used by Momentum
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0334.91 ▼13.80
Dashboard /wp-admin3.34 ▲0.0444.84 ▼2.43
Posts /wp-admin/edit.php3.39 ▲0.0345.57 ▼0.94
Add New Post /wp-admin/post-new.php5.92 ▲0.0393.03 ▲0.63
Media Library /wp-admin/upload.php3.26 ▲0.0338.50 ▲3.47
Momentum to Pages /wp-admin/tools.php?page=momentum/momentum.php3.2331.02

Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Momentum
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲8813.25 ▼1.124.31 ▲2.1642.84 ▼1.16
Dashboard /wp-admin2,226 ▲384.89 ▼0.97106.87 ▼5.0938.84 ▼2.39
Posts /wp-admin/edit.php2,109 ▲232.04 ▼0.0141.50 ▲6.1436.10 ▲0.08
Add New Post /wp-admin/post-new.php1,549 ▲723.16 ▼0.19661.13 ▲38.5956.95 ▼0.56
Media Library /wp-admin/upload.php1,408 ▲294.21 ▼0.0496.13 ▼10.3344.73 ▲2.52
Momentum to Pages /wp-admin/tools.php?page=momentum/momentum.php7882.0226.9628.57

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 detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

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
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 take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/momentum/momentum.php:95

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: seo, autopost, xml sitemap, google, momentum

momentum/momentum.php 92% from 13 tests

The entry point to "Momentum" version 1.0.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 193 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin156 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14755156

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.09
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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