78% actus-motion

Code Review | ACTUS Motion

WordPress plugin ACTUS Motion scored78%from 54 tests.

About plugin

  • Plugin page: actus-motion
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.7
  • WordPress version: 6.3.1
  • First release: Jul 21, 2018
  • Latest release: Jul 23, 2018
  • Number of updates: 10
  • Update frequency: every 0.3 days
  • Top authors: actusanima (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,175 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.63MB] [CPU: ▼19.71ms] Passed 4 tests

Server-side resources used by ACTUS Motion
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0433.44 ▼2.75
Dashboard /wp-admin3.38 ▲0.0346.96 ▼13.07
Posts /wp-admin/edit.php3.43 ▲0.0748.51 ▼4.45
Add New Post /wp-admin/post-new.php3.22 ▼2.6632.36 ▼58.56
Media Library /wp-admin/upload.php3.30 ▲0.0733.33 ▲0.46
ACTUS /wp-admin/admin.php?page=actus-plugins3.2730.03
ACTUS Motion /wp-admin/admin.php?page=actus-motion3.2729.94

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 43 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts
ACTUS_MTN_VERSION
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

ACTUS Motion: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,967 ▲23214.06 ▼0.326.43 ▲4.7039.93 ▼0.43
Dashboard /wp-admin2,234 ▲465.86 ▼0.04107.50 ▲5.4668.12 ▲24.66
Posts /wp-admin/edit.php2,123 ▲342.11 ▲0.1139.05 ▼1.2736.25 ▼2.33
Add New Post /wp-admin/post-new.php6,341 ▲4,80826.18 ▲3.06929.88 ▲233.5644.28 ▼13.26
Media Library /wp-admin/upload.php1,416 ▲254.18 ▼0.02109.20 ▲12.1047.93 ▲1.39
ACTUS /wp-admin/admin.php?page=actus-plugins8582.0927.1841.60
ACTUS Motion /wp-admin/admin.php?page=actus-motion9512.1825.9328.38

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • ACTUS_MTN_VERSION

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/actus-motion/includes/actus-plugins.php
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Warning
      Use of undefined constant ACTUS_MTN_URL - assumed 'ACTUS_MTN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/actus-motion/includes/actus-plugins.php on line 7
    • > PHP Warning
      Use of undefined constant ACTUS_MTN_URL - assumed 'ACTUS_MTN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/actus-motion/includes/actus-plugins.php on line 24
    • > PHP Warning
      Use of undefined constant ACTUS_MTN_URL - assumed 'ACTUS_MTN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/actus-motion/includes/actus-plugins.php on line 29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/actus-motion/includes/actus-mtn-edit.php:155
    • > PHP Warning
      Use of undefined constant ACTUS_MTN_URL - assumed 'ACTUS_MTN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/actus-motion/includes/actus-plugins.php on line 19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
The official readme.txt is a good inspiration

actus-motion/actus-motion.php Passed 13 tests

The entry point to "ACTUS Motion" version 1.0.1 is a PHP file that has certain tags in its header comment area
28 characters long description:
Add motion to your elements.

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
There were no executable files found in this plugin2,571 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
CSS2226411,241
JavaScript2171103773
PHP8177166557

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
23 PNG files occupy 0.43MB with 0.29MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/arrow.png6.43KB3.64KB▼ 43.32%
img/actus_white_20.png15.42KB0.73KB▼ 95.25%
img/actus_white_64.png16.75KB2.07KB▼ 87.67%
img/banner-amtn.png80.17KB44.90KB▼ 44.00%
img/checkbox1.png1.68KB0.64KB▼ 61.80%