84% mojuredfiscalization

Code Review | MojUredFiscalization

WordPress plugin MojUredFiscalization scored84%from 54 tests.

About plugin

  • Plugin page: mojuredfiscalization
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Jul 11, 2023
  • Latest release: Jul 11, 2023
  • Number of updates: 8
  • Update frequency: every 9.6 days
  • Top authors: krunoslavris (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /247 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.21MB] [CPU: ▼5.44ms] Passed 4 tests

Analyzing server-side resources used by MojUredFiscalization
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2138.72 ▼1.51
Dashboard /wp-admin3.52 ▲0.1747.67 ▼11.79
Posts /wp-admin/edit.php3.63 ▲0.2849.11 ▲3.10
Add New Post /wp-admin/post-new.php6.12 ▲0.2389.75 ▼11.56
Media Library /wp-admin/upload.php3.44 ▲0.2142.56 ▲6.86

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for MojUredFiscalization
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲7213.71 ▼0.971.66 ▼0.1039.70 ▼8.00
Dashboard /wp-admin2,213 ▲254.90 ▼1.00109.48 ▲4.6538.45 ▼6.11
Posts /wp-admin/edit.php2,099 ▲102.07 ▲0.0240.70 ▲4.6334.90 ▼0.05
Add New Post /wp-admin/post-new.php1,520 ▼1323.13 ▼0.04610.57 ▼84.6450.54 ▼4.19
Media Library /wp-admin/upload.php1,398 ▲104.35 ▲0.21101.37 ▼16.8044.67 ▼2.16

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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 take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/mojuredfiscalization/admin/template/mojured-admin-display.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Contributors: The plugin contributors field is missing
You can look at the official readme.txt

mojuredfiscalization/mojured.php 92% from 13 tests

The primary PHP file in "MojUredFiscalization" version 1.0.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("mojuredfiscalization.php" instead of "mojured.php")

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
Everything looks great! No dangerous files found in this plugin1,658 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP103436071,101
JavaScript2121100518
CSS13439

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity30.17
▷ Minimum class complexity1.00
▷ Maximum class complexity167.00
Average method complexity4.80
▷ Minimum method complexity1.00
▷ Maximum method complexity41.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods46
▷ Static methods24.35%
▷ Public methods3678.26%
▷ Protected methods00.00%
▷ Private methods1021.74%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin