84% phanes-marketing

Code Review | Phanes Marketing Woo-Youtube Reviews

WordPress plugin Phanes Marketing Woo-Youtube Reviews scored 84% from 54 tests.

About plugin

  • Plugin page: phanes-marketing
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-5.1.1
  • WordPress version: 6.3.1
  • First release: Aug 9, 2018
  • Latest release: Mar 21, 2019
  • Number of updates: 9
  • Update frequency: every 24.9 days
  • Top authors: phanesco (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 585 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼4.19ms] Passed 4 tests

Analyzing server-side resources used by Phanes Marketing Woo-Youtube Reviews
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0639.89 ▼1.52
Dashboard /wp-admin3.38 ▲0.0847.80 ▼0.34
Posts /wp-admin/edit.php3.49 ▲0.1447.60 ▲0.28
Add New Post /wp-admin/post-new.php5.96 ▲0.0886.38 ▼15.16
Media Library /wp-admin/upload.php3.30 ▲0.0735.99 ▲0.93
License /wp-admin/admin.php?page=phanes-marketing-license3.2730.97
Phanes Marketing /wp-admin/admin.php?page=phanes-marketing3.2732.59

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Phanes Marketing Woo-Youtube Reviews
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,871 ▲13613.23 ▼1.441.95 ▲0.2943.30 ▼1.14
Dashboard /wp-admin2,249 ▲645.88 ▲0.0098.19 ▼6.7940.35 ▼2.94
Posts /wp-admin/edit.php2,134 ▲452.03 ▲0.0238.78 ▼1.1434.00 ▼1.31
Add New Post /wp-admin/post-new.php1,578 ▲5818.28 ▼4.78624.21 ▼45.2862.70 ▲5.01
Media Library /wp-admin/upload.php1,434 ▲464.22 ▲0.0197.04 ▼5.4342.47 ▼4.51
License /wp-admin/admin.php?page=phanes-marketing-license8252.0724.9030.36
Phanes Marketing /wp-admin/admin.php?page=phanes-marketing8582.1723.9129.80

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/phanes-marketing/admin/settings-page.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/phanes-marketing/admin/license-page.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/phanes-marketing/class-youtube.php:6

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)
There were no browser issues found


Plugin configuration 97% from 29 tests

readme.txt 94% from 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
Attributes that need to be fixed:
  • Screenshots: These screenshots need descriptions #1, #1600, #2, #3, #4, #0 in phanes-marketing/assets to your readme.txt
The official readme.txt might help

phanes-marketing/phanes-marketing.php Passed 13 tests

The principal PHP file in "Phanes Marketing Woo-Youtube Reviews" v. 1.0.1 is loaded by WordPress automatically on each request
125 characters long description:
Phanes Marketing is a WooCommerce Marketing Tool that displays Youtube Reviews on product pages to increase sales conversion.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected2,970 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity17.50
▷ Minimum class complexity13.00
▷ Maximum class complexity22.00
Average method complexity2.78
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes125.00%
▷ Static methods410.81%
▷ Public methods3286.49%
▷ Protected methods00.00%
▷ Private methods513.51%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin