84% arconix-testimonials

Code Review | Arconix Testimonials

WordPress plugin Arconix Testimonials scored84%from 54 tests.

About plugin

  • Plugin page: arconix-testimonials
  • Plugin version: 1.4.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.7
  • WordPress version: 6.3.1
  • First release: Jan 16, 2013
  • Latest release: Mar 15, 2021
  • Number of updates: 42
  • Update frequency: every 79.0 days
  • Top authors: jgardner03 (54.76%)tychesoftwares (47.62%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /2,737 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.14MB] [CPU: ▼0.22ms] Passed 4 tests

Server-side resources used by Arconix Testimonials
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0836.83 ▼3.47
Dashboard /wp-admin3.49 ▲0.19118.27 ▲63.09
Posts /wp-admin/edit.php3.51 ▲0.1647.45 ▼0.75
Add New Post /wp-admin/post-new.php6.06 ▲0.1893.91 ▲1.25
Media Library /wp-admin/upload.php3.37 ▲0.1435.18 ▲2.10
Add New /wp-admin/post-new.php?post_type=testimonials3.9050.53
Testimonials /wp-admin/edit.php?post_type=testimonials3.4335.65

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 388 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_arconix-testimonials
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Arconix Testimonials
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,906 ▲17114.84 ▲0.451.70 ▼0.1042.94 ▼6.68
Dashboard /wp-admin2,295 ▲1075.93 ▲1.01105.05 ▼11.6384.11 ▲37.68
Posts /wp-admin/edit.php2,129 ▲402.22 ▲0.1940.84 ▲6.6436.89 ▲3.05
Add New Post /wp-admin/post-new.php1,555 ▲4118.06 ▲0.61602.74 ▼99.4254.10 ▼7.51
Media Library /wp-admin/upload.php1,422 ▲314.27 ▲0.0398.35 ▼2.2243.04 ▼1.84
Add New /wp-admin/post-new.php?post_type=testimonials2,3217.66173.8368.30
Testimonials /wp-admin/edit.php?post_type=testimonials1,1172.0434.3428.09

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
    • widget_theysaidso_widget
    • widget_arconix-testimonials
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 41× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/arconix-testimonials/includes/metabox/includes/types/CMB2_Type_Picker_Base.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/arconix-testimonials/includes/metabox/includes/types/CMB2_Type_Select.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Base' not found in wp-content/plugins/arconix-testimonials/includes/metabox/includes/CMB2_Field.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/arconix-testimonials/includes/metabox/includes/types/CMB2_Type_Radio.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/arconix-testimonials/includes/metabox/includes/types/CMB2_Type_Text_Datetime_Timestamp_Timezone.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/arconix-testimonials/includes/metabox/includes/types/CMB2_Type_Counter_Base.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_hookup' not found in wp-content/plugins/arconix-testimonials/includes/metabox/includes/CMB2_Options_Hookup.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/arconix-testimonials/includes/metabox/includes/types/CMB2_Type_Text_Datetime_Timestamp.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Textarea' not found in wp-content/plugins/arconix-testimonials/includes/metabox/includes/types/CMB2_Type_Wysiwyg.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/arconix-testimonials/plugin.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: quotes, feedback, testimonials, arconix

arconix-testimonials/plugin.php 92% from 13 tests

"Arconix Testimonials" version 1.4.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("arconix-testimonials.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin56,382 lines of code in 236 files:
LanguageFilesBlank linesComment linesLines of code
PO File12014,31518,50232,323
PHP682,6237,3988,962
CSS163251,2175,150
JSON2004,252
JavaScript116679643,635
Sass17305251,408
Markdown22170652

PHP code Passed 2 tests

An overview of 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.47
Average class complexity20.58
▷ Minimum class complexity1.00
▷ Maximum class complexity185.00
Average method complexity3.28
▷ Minimum method complexity1.00
▷ Maximum method complexity35.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes79
▷ Abstract classes911.39%
▷ Concrete classes7088.61%
▷ Final classes00.00%
Methods681
▷ Static methods10114.83%
▷ Public methods58185.32%
▷ Protected methods9714.24%
▷ Private methods30.44%
Functions34
▷ Named functions34100.00%
▷ Anonymous functions00.00%
Constants14
▷ Global constants857.14%
▷ Class constants642.86%
▷ Public constants6100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
20 compressed PNG files occupy 0.04MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/metabox/images/ico-delete.png0.70KB0.72KB0.00%
includes/metabox/images/ui-bg_highlight-soft_75_cccccc_1x100.png0.10KB0.17KB0.00%
includes/metabox/images/ui-icons_454545_256x240.png4.27KB4.11KB▼ 3.78%
includes/css/images/page-16x16.png0.33KB0.46KB0.00%
includes/metabox/images/ui-bg_flat_0_aaaaaa_40x100.png0.18KB0.08KB▼ 51.67%