84% actus-xfields

Code Review | ACTUS Xfields

WordPress plugin ACTUS Xfields scored84%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: 6.3.1
  • 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 /843 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
This plugin's installer ran successfully

Server metrics [RAM: ▼0.54MB] [CPU: ▼13.73ms] Passed 4 tests

This is a short check of server-side resources used by ACTUS Xfields
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0742.18 ▲0.63
Dashboard /wp-admin3.49 ▲0.1863.53 ▲10.13
Posts /wp-admin/edit.php3.60 ▲0.2557.67 ▲4.86
Add New Post /wp-admin/post-new.php3.29 ▼2.5940.30 ▼65.38
Media Library /wp-admin/upload.php3.39 ▲0.1643.43 ▲4.97
ACTUS /wp-admin/admin.php?page=actus-plugins3.3843.14
ACTUS Xfields /wp-admin/admin.php?page=actus-xfields3.4044.37

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 46 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
ACTUS_XF_VERSION
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for ACTUS Xfields
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,071 ▲31014.70 ▲0.611.68 ▼0.1242.32 ▼5.77
Dashboard /wp-admin2,462 ▲2596.60 ▲0.80135.03 ▲30.4078.38 ▲40.81
Posts /wp-admin/edit.php2,376 ▲2763.55 ▲1.5551.73 ▲12.1081.72 ▲49.61
Add New Post /wp-admin/post-new.php6,270 ▲4,72526.28 ▲2.97868.99 ▲253.0938.00 ▼29.38
Media Library /wp-admin/upload.php1,507 ▲1104.31 ▲0.0996.16 ▼22.82112.73 ▲63.02
ACTUS /wp-admin/admin.php?page=actus-plugins1,1403.2352.52104.83
ACTUS Xfields /wp-admin/admin.php?page=actus-xfields1,4583.2246.3987.43

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
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • ACTUS_XF_VERSION
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means 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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > 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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 16 tag instead of maximum 10
The official readme.txt is a good inspiration

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

The main file in "ACTUS Xfields" v. 1.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
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 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin4,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
Great job! No cyclomatic complexity issues were detected in 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

PNG files should be compressed to save space and minimize bandwidth usage
29 PNG files occupy 0.58MB with 0.36MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/actus_white.png21.21KB4.82KB▼ 77.29%
img/icon-help.png3.46KB2.37KB▼ 31.60%
img/banner-xfields.png137.08KB61.12KB▼ 55.41%
img/x.png3.66KB1.66KB▼ 54.50%
img/actus_white_20.png15.42KB0.73KB▼ 95.25%