84% future-monitor

Code Review | Future Monitor

WordPress plugin Future Monitor scored84%from 54 tests.

About plugin

  • Plugin page: future-monitor
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.3.2
  • WordPress version: 6.3.1
  • First release: May 13, 2020
  • Latest release: May 13, 2020
  • Number of updates: 2
  • Update frequency: every 31.0 days
  • Top authors: EdwardBock (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /510 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼6.66ms] Passed 4 tests

Analyzing server-side resources used by Future Monitor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1046.06 ▲0.12
Dashboard /wp-admin3.40 ▲0.0555.76 ▼12.07
Posts /wp-admin/edit.php3.51 ▲0.1551.72 ▼0.89
Add New Post /wp-admin/post-new.php5.98 ▲0.0991.90 ▼13.80
Media Library /wp-admin/upload.php3.32 ▲0.0942.14 ▲5.28

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Future Monitor
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,854 ▲6814.37 ▲0.022.13 ▲0.1043.57 ▼0.67
Dashboard /wp-admin2,232 ▲555.56 ▼0.1290.65 ▼3.0043.07 ▲6.11
Posts /wp-admin/edit.php2,100 ▼32.04 ▲0.0133.97 ▼6.9534.20 ▼5.52
Add New Post /wp-admin/post-new.php1,526 ▼517.75 ▼5.44687.61 ▲68.5059.16 ▼0.26
Media Library /wp-admin/upload.php1,403 ▲34.21 ▼0.1196.97 ▼4.1141.27 ▼3.33

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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 fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Palasthotel\\FutureMonitor\\load_plugin_textdomain() in wp-content/plugins/future-monitor/Plugin.php:37

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 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
4 plugin tags: dashboard, schedule visualization, planned posts, widget

future-monitor/Plugin.php 92% from 13 tests

This is the main PHP file of "Future Monitor" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("future-monitor.php" instead of "Plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin562 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP11127204497
PO File18948
JSON10017

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity9.71
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.61
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods38
▷ Static methods37.89%
▷ Public methods3797.37%
▷ Protected methods00.00%
▷ Private methods12.63%
Functions5
▷ Named functions120.00%
▷ Anonymous functions480.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin