84% metro-share-social-fonts

Code Review | Metro Share Social Fonts

WordPress plugin Metro Share Social Fonts scored84%from 54 tests.

About plugin

  • Plugin page: metro-share-socia...
  • Plugin version: 0.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.7
  • WordPress version: 6.3.1
  • First release: Sep 1, 2016
  • Latest release: Dec 12, 2016
  • Number of updates: 8
  • Update frequency: every 12.8 days
  • Top authors: PerS (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,028 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
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.22ms] Passed 4 tests

Server-side resources used by Metro Share Social Fonts
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.23 ▲1.24
Dashboard /wp-admin3.31 ▲0.0048.27 ▼2.81
Posts /wp-admin/edit.php3.36 ▲0.0052.55 ▲1.49
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.42 ▼15.50
Media Library /wp-admin/upload.php3.23 ▲0.0035.56 ▼3.82

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Metro Share Social Fonts
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.24 ▼0.111.83 ▲0.2342.46 ▼0.27
Dashboard /wp-admin2,192 ▲155.55 ▼0.0282.38 ▼18.5838.71 ▼1.88
Posts /wp-admin/edit.php2,100 ▼01.95 ▼0.0435.95 ▼1.4035.17 ▼1.35
Add New Post /wp-admin/post-new.php1,528 ▼023.37 ▲0.24672.43 ▲29.3848.17 ▼7.58
Media Library /wp-admin/upload.php1,397 ▼04.20 ▼0.0097.66 ▼2.8443.33 ▲2.75

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/metro-share-social-fonts/metro-share-social-fonts.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
9 plugin tags: linkedin, share, twitter, facebook, googlepluss...

metro-share-social-fonts/metro-share-social-fonts.php Passed 13 tests

The entry point to "Metro Share Social Fonts" version 0.2.1 is a PHP file that has certain tags in its header comment area
70 characters long description:
Replace the default Metro Share social icons with icomoon social fonts

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
Success! There were no dangerous files found in this plugin194 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS23616167
SVG10017
PHP122210

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin