84% actus-xfields

Code Review | ACTUS Xfields

WordPress plugin ACTUS Xfields scored 84% from 54 tests.

About plugin

  • Plugin page: actus-xfields
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.2
  • WordPress version: 5.9.2
  • First release: Mar 10, 2019
  • Latest release: May 9, 2019
  • Number of updates: 12
  • Update frequency: every 5.0 days
  • Top authors: actusanima (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 621 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.78MB] [CPU: ▼311.34ms] Passed 4 tests

Analyzing server-side resources used by ACTUS Xfields
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1355.39 ▲2.40
Dashboard /wp-admin3.60 ▲0.1940.74 ▲9.06
Posts /wp-admin/edit.php3.83 ▲0.1943.53 ▲5.89
Add New Post /wp-admin/post-new.php3.37 ▼3.6030.09 ▼1,250.97
Media Library /wp-admin/upload.php3.47 ▲0.1624.55 ▼2.67
ACTUS /wp-admin/admin.php?page=actus-plugins3.4727.74
ACTUS Xfields /wp-admin/admin.php?page=actus-xfields3.7234.04

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 46 new files
Database: no new tables, 1 new option
New WordPress options
ACTUS_XF_VERSION

Browser metrics Passed 4 tests

This is an overview of browser requirements for ACTUS Xfields
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,110 ▲38417.86 ▲2.096.98 ▼0.862.71 ▲0.11
Dashboard /wp-admin3,209 ▲3518.25 ▲2.07151.01 ▲12.59182.06 ▲21.20
Posts /wp-admin/edit.php3,034 ▲3464.72 ▲1.4884.11 ▲20.18154.46 ▲8.32
Add New Post /wp-admin/post-new.php1,792 ▲13117.65 ▲1.11410.57 ▼15.39198.12 ▲42.25
Media Library /wp-admin/upload.php1,821 ▲1235.60 ▲0.11114.71 ▼28.92208.76 ▲12.73
ACTUS /wp-admin/admin.php?page=actus-plugins1,4414.4874.89161.31
ACTUS Xfields /wp-admin/admin.php?page=actus-xfields1,9354.6875.38144.96

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • ACTUS_XF_VERSION

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 | 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 esc_url() in wp-content/plugins/actus-xfields/includes/actus-plugins.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 97% 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
Please fix the following attributes:
  • Tags: There are too many tags (16 tag instead of maximum 10)
The official readme.txt might help

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

"ACTUS Xfields" version 1.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
82 characters long description:
Create custom fields for your pages and posts, or global options for your website.

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
Good job! No executable or dangerous file extensions detected4,482 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript23801421,839
CSS2267631,714
PHP6316158929

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.46
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%
Functions27
▷ Named functions27100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
29 PNG files occupy 0.58MB with 0.30MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/checkbox1.png1.68KB0.64KB▼ 61.80%
img/check.png2.84KB1.23KB▼ 56.84%
img/xfields-logo-white.png6.96KB3.58KB▼ 48.58%
img/actus_2.png7.38KB4.82KB▼ 34.71%
img/xfields-logo-light.png8.43KB3.48KB▼ 58.75%