84% cmyee-momentopress

Code Review | MomentoPress for Momento360

WordPress plugin MomentoPress for Momento360 scored84%from 54 tests.

About plugin

  • Plugin page: cmyee-momentopress
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.3
  • WordPress version: 6.3.1
  • First release: Aug 19, 2017
  • Latest release: Oct 23, 2023
  • Number of updates: 13
  • Update frequency: every 173.6 days
  • Top authors: cmyee (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

1,000+ active /12,142 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.00MB] [CPU: ▼7.76ms] Passed 4 tests

Server-side resources used by MomentoPress for Momento360
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.20 ▲0.48
Dashboard /wp-admin3.31 ▼0.0346.40 ▼13.72
Posts /wp-admin/edit.php3.36 ▲0.0143.65 ▼1.61
Add New Post /wp-admin/post-new.php5.89 ▲0.0183.02 ▼14.63
Media Library /wp-admin/upload.php3.23 ▲0.0132.96 ▼1.07

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

MomentoPress for Momento360: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲5914.24 ▼0.111.77 ▲0.0741.65 ▲2.16
Dashboard /wp-admin2,200 ▲195.61 ▲0.0181.14 ▼21.4937.22 ▼10.45
Posts /wp-admin/edit.php2,102 ▲51.98 ▼0.0534.44 ▼0.7935.45 ▲0.24
Add New Post /wp-admin/post-new.php1,533 ▲523.18 ▲0.14659.51 ▼17.6459.18 ▲11.49
Media Library /wp-admin/upload.php1,402 ▲24.15 ▼0.0496.20 ▼2.4040.61 ▼3.84

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cmyee-momentopress/momentopress.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: 360 degree videos, momento360, 360, 360 degree photos, virtual reality...

cmyee-momentopress/momentopress.php 85% from 13 tests

The main PHP file in "MomentoPress for Momento360" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("cmyee-momentopress.php" instead of "momentopress.php")

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
No dangerous file extensions were detected35 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1102120
CSS12315

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.00
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin