10% dynamic-mo-loader

Code Review | Dynamic MO Loader

WordPress plugin Dynamic MO Loader scored10%from 54 tests.

About plugin

  • Plugin page: dynamic-mo-loader
  • Plugin version: 1.4.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.3-5.2.4
  • WordPress version: 6.3.1
  • First release: Jul 30, 2019
  • Latest release: Nov 21, 2019
  • Number of updates: 4
  • Update frequency: every 28.5 days
  • Top authors: aucor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,512 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/dynamic-mo-loader/inc/mo_dynamic.php+397
    Array and string offset access syntax with curly braces is deprecated

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

A check of server-side resources used by Dynamic MO Loader
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.37 ▼4.66
Dashboard /wp-admin3.31 ▲0.0057.48 ▲11.45
Posts /wp-admin/edit.php3.36 ▲0.0048.27 ▼1.10
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.47 ▼2.75
Media Library /wp-admin/upload.php3.23 ▲0.0034.58 ▲3.23

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Dynamic MO Loader: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.55 ▼0.832.03 ▲0.2043.91 ▼0.63
Dashboard /wp-admin2,206 ▲154.84 ▼0.1796.48 ▼8.1740.47 ▼6.39
Posts /wp-admin/edit.php2,089 ▼32.00 ▼0.0039.48 ▼1.3935.82 ▼1.47
Add New Post /wp-admin/post-new.php1,545 ▲2523.21 ▲0.00576.74 ▼81.2145.97 ▼24.17
Media Library /wp-admin/upload.php1,391 ▲94.16 ▼0.0394.40 ▼4.2843.08 ▼0.01

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

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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'Gettext_Translations' not found in wp-content/plugins/dynamic-mo-loader/inc/mo_dynamic.php:41
    • > PHP Fatal error
      Uncaught Error: Class 'Gettext_Translations' not found in wp-content/plugins/dynamic-mo-loader/inc/mo_dynamic.php:41

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: wp_query, rest api, wordpress

dynamic-mo-loader/dynamic-mo-loader.php Passed 13 tests

"Dynamic MO Loader" version 1.4.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
52 characters long description:
Better text domain loading with object cache support

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 plugin555 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP39176499
Markdown123035
JSON10021

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity40.00
▷ Minimum class complexity2.00
▷ Maximum class complexity108.00
Average method complexity5.38
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods22
▷ Static methods14.55%
▷ Public methods1881.82%
▷ Protected methods14.55%
▷ Private methods313.64%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.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
1 PNG file occupies 0.11MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot.png111.82KB58.38KB▼ 47.79%