73% wp-font-pairing-preview

Code Review | Font Pairing Preview For Landing Pages

WordPress plugin Font Pairing Preview For Landing Pages scored73%from 54 tests.

About plugin

  • Plugin page: wp-font-pairing-p...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-3.5.1
  • WordPress version: 6.3.1
  • First release: Oct 1, 2012
  • Latest release: Apr 4, 2013
  • Number of updates: 10
  • Update frequency: every 18.6 days
  • Top authors: wpsolutions (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /8,388 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.29ms] Passed 4 tests

Server-side resources used by Font Pairing Preview For Landing Pages
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0042.60 ▲2.30
Dashboard /wp-admin3.32 ▲0.0148.25 ▼2.41
Posts /wp-admin/edit.php3.37 ▲0.0147.34 ▼4.07
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.24 ▼20.96
Media Library /wp-admin/upload.php3.24 ▲0.0139.09 ▲2.84
Font Pairing Preview /wp-admin/options-general.php?page=wp_fpp_plugin3.2830.83

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Font Pairing Preview For Landing Pages
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.34 ▼0.032.24 ▲0.6344.22 ▲1.78
Dashboard /wp-admin2,199 ▲225.58 ▲0.0188.46 ▼2.4040.36 ▼0.12
Posts /wp-admin/edit.php2,104 ▲41.97 ▼0.0138.38 ▼4.4038.33 ▲1.43
Add New Post /wp-admin/post-new.php1,541 ▲523.37 ▲4.96676.62 ▲46.5252.20 ▼14.26
Media Library /wp-admin/upload.php1,404 ▲44.22 ▲0.04100.47 ▼11.2746.08 ▲0.34
Font Pairing Preview /wp-admin/options-general.php?page=wp_fpp_plugin9782.1030.9237.18

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=wp_fpp_plugin
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=wp_fpp_plugin
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-font-pairing-preview/wp-font-pairing-preview.php:26

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wp_fpp_plugin
    • > Network (severe)
    http://fonts.googleapis.com/css?family= - Failed to load resource: the server responded with a status of 400 (Bad Request)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: typeface pairings, landing page creation tools, font pairing chart, font pairing, wp landing pages...

wp-font-pairing-preview/wp-font-pairing-preview.php Passed 13 tests

"Font Pairing Preview For Landing Pages" version 1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
100 characters long description:
This plugin allows you to preview any google web font family pairings from your administration page.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin7,634 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JSON1007,319
PHP23436282
CSS25633

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin