84% moxo

Code Review | Moxo

WordPress plugin Moxo scored84%from 54 tests.

About plugin

  • Plugin page: moxo
  • Plugin version: 1.0.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.2.2
  • WordPress version: 6.3.1
  • First release: Oct 19, 2019
  • Latest release: Nov 21, 2019
  • Number of updates: 5
  • Update frequency: every 7.2 days
  • Top authors: moxomarket (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /4,402 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼1.72ms] Passed 4 tests

Server-side resources used by Moxo
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.42 ▲0.01
Dashboard /wp-admin3.31 ▲0.0145.38 ▼1.85
Posts /wp-admin/edit.php3.37 ▲0.0146.81 ▼5.34
Add New Post /wp-admin/post-new.php5.90 ▲0.0191.92 ▲2.95
Media Library /wp-admin/upload.php3.24 ▲0.0133.41 ▲0.30

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Moxo
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.71 ▼0.601.60 ▼0.2636.70 ▼13.05
Dashboard /wp-admin2,203 ▲154.87 ▼0.99100.18 ▼6.1539.45 ▼5.58
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0041.33 ▲5.0536.88 ▲3.12
Add New Post /wp-admin/post-new.php1,528 ▼518.39 ▼4.70600.20 ▼87.7055.16 ▼4.41
Media Library /wp-admin/upload.php1,388 ▲34.21 ▼0.0194.14 ▼6.9342.22 ▼4.16

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

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)
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 12× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/moxo/inc/moxo/sections/section-testimonial.php:101
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/moxo/inc/moxo/features/moxo-slider-section.php:202
    • > PHP Fatal error
      Uncaught Error: Call to undefined function update_option() in wp-content/plugins/moxo/inc/moxo/default-widgets/default-widget.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/moxo/inc/moxo/sections/section-service.php:105
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/moxo/inc/moxo/features/moxo-navigation.php:39
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_insert_post() in wp-content/plugins/moxo/inc/moxo/default-pages/home-page.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/moxo/inc/moxo/features/moxo-testimonial.php:196
    • > PHP Warning
      Use of undefined constant MOXO_PLUGIN_URL - assumed 'MOXO_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/moxo/inc/moxo/default-pages/upload-media.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/moxo/inc/moxo/sections/section-slider.php:52
    • > PHP Fatal error
      Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/moxo/inc/moxo/features/moxo-service-section.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: section, moxo

moxo/moxo.php 92% from 13 tests

The entry point to "Moxo" version 1.0.5 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 218 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin1,518 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP141301831,282
CSS2220135
JavaScript42124101

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity7.00
▷ Minimum class complexity1.00
▷ Maximum class complexity21.00
Average method complexity3.18
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods981.82%
▷ Protected methods218.18%
▷ Private methods00.00%
Functions27
▷ Named functions27100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
7 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/moxo/images/testimonial/testimonial01.png8.20KB3.88KB▼ 52.72%
inc/moxo/images/service/img-3.png16.71KB2.27KB▼ 86.39%
inc/moxo/images/testimonial/testimonial02.png11.04KB4.58KB▼ 58.54%
inc/moxo/images/service/img-1.png15.77KB1.54KB▼ 90.21%
inc/moxo/images/service/img-2.png1.64KB0.91KB▼ 44.74%