83% wp-fontallic-easypromoweb

Code Review | WP Fontallic Easypromoweb

WordPress plugin WP Fontallic Easypromoweb scored83%from 54 tests.

About plugin

  • Plugin page: wp-fontallic-easy...
  • Plugin version: 1.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.2.3
  • WordPress version: 6.3.1
  • First release: Sep 22, 2014
  • Latest release: Oct 12, 2019
  • Number of updates: 17
  • Update frequency: every 108.9 days
  • Top authors: danEasyPromoWeb (76.47%)danichimc (29.41%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /5,441 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.26MB] [CPU: ▼2.40ms] Passed 4 tests

Analyzing server-side resources used by WP Fontallic Easypromoweb
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0637.07 ▼1.88
Dashboard /wp-admin3.66 ▲0.3649.18 ▲0.66
Posts /wp-admin/edit.php3.72 ▲0.3752.45 ▲4.56
Add New Post /wp-admin/post-new.php6.16 ▲0.2882.33 ▼10.37
Media Library /wp-admin/upload.php3.66 ▲0.4337.61 ▲1.99
Fontallic Panel /wp-admin/admin.php?page=epw_plugin_options3.6331.17
Help - Support /wp-admin/admin.php?page=epw_plugin_help3.6332.97

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 53 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by WP Fontallic Easypromoweb
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲7514.69 ▲0.281.66 ▲0.0338.66 ▼6.58
Dashboard /wp-admin2,236 ▲484.89 ▼1.01103.01 ▼4.4640.66 ▼2.83
Posts /wp-admin/edit.php2,116 ▲272.04 ▲0.0536.35 ▲1.0134.66 ▼1.24
Add New Post /wp-admin/post-new.php1,548 ▲1323.45 ▲0.20656.45 ▲39.6860.67 ▲2.45
Media Library /wp-admin/upload.php1,409 ▲244.29 ▲0.0296.44 ▼0.6041.85 ▼2.69
Fontallic Panel /wp-admin/admin.php?page=epw_plugin_options8722.2224.5731.66
Help - Support /wp-admin/admin.php?page=epw_plugin_help22,7001.9923.21268.76

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

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
Even though no errors were found, 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
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-fontallic-easypromoweb/epw-options.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-fontallic-easypromoweb/epw-options.php:22

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 87% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 21 tag instead of maximum 10
  • Screenshots: These screenshots require images: #4 (Size options), #5 (All the Colours), #6 (Super Awesome Admin Panel), #7 (Shortcodes and help page), #8 (Fontallic with 2122 icons)
You can look at the official readme.txt

wp-fontallic-easypromoweb/wp-fontallic-easypromoweb.php 85% from 13 tests

The main file in "WP Fontallic Easypromoweb" v. 1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Requires at least: The required version number must match the one declared in readme.txt ("3.9" instead of "3.0.1")
  • Description: Please keep the plugin description shorter than 140 characters (currently 247 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected14,961 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
CSS9761038,362
HTML1303,440
SVG3002,680
PHP5101187280
Markdown1310141
JavaScript4181758

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
12 PNG files occupy 0.83MB with 0.50MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/fa-cover.png59.50KB20.08KB▼ 66.26%
css/img/gen-cover2.png9.72KB3.06KB▼ 68.53%
css/img/chosen-sprite.png0.63KB0.88KB0.00%
css/img/gen-cover.png40.88KB13.25KB▼ 67.59%
css/img/fontallic-cover2.png266.86KB6.83KB▼ 97.44%