79% connections-business-directory-legacy-templates

Code Review | Connections Business Directory Legacy Templates

WordPress plugin Connections Business Directory Legacy Templates scored79%from 54 tests.

About plugin

  • Plugin page: connections-busin...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8
  • WordPress version: 6.3.1
  • First release: Jul 29, 2015
  • Latest release: Feb 8, 2016
  • Number of updates: 8
  • Update frequency: every 85.6 days
  • Top authors: shazahm1@hotmail.com (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /2,630 total downloads

Benchmarks

Plugin footprint 65% 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: ▼1.92MB] [CPU: ▼54.99ms] Passed 4 tests

This is a short check of server-side resources used by Connections Business Directory Legacy Templates
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.399.11 ▼40.65
Dashboard /wp-admin2.09 ▼1.226.63 ▼41.98
Posts /wp-admin/edit.php2.09 ▼1.274.90 ▼45.58
Add New Post /wp-admin/post-new.php2.09 ▼3.806.42 ▼91.75
Media Library /wp-admin/upload.php2.09 ▼1.146.16 ▼32.64

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Connections Business Directory Legacy Templates
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5814.38 ▲0.021.90 ▲0.2842.91 ▲3.40
Dashboard /wp-admin2,203 ▲235.65 ▲0.0191.80 ▲0.6344.69 ▲3.63
Posts /wp-admin/edit.php2,105 ▲51.97 ▼0.0436.16 ▼0.5034.39 ▼3.65
Add New Post /wp-admin/post-new.php1,531 ▲323.63 ▲0.59672.65 ▼19.4568.41 ▲14.88
Media Library /wp-admin/upload.php1,402 ▼14.11 ▼0.0898.30 ▼12.4644.39 ▲3.44

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/connections-business-directory-legacy-templates/connections-legacy-templates.php+148
    Function create_function() is deprecated
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test

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

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 51 tag instead of maximum 10
The official readme.txt is a good inspiration

connections-business-directory-legacy-templates/connections-legacy-templates.php 77% from 13 tests

This is the main PHP file of "Connections Business Directory Legacy Templates" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("connections-business-directory-legacy-templates.php" instead of "connections-legacy-templates.php")

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
Good job! No executable or dangerous file extensions detected302 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP412383302

PHP code Passed 2 tests

An short overview of 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.16
Average class complexity2.75
▷ Minimum class complexity2.00
▷ Maximum class complexity3.00
Average method complexity1.54
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods13
▷ Static methods969.23%
▷ Public methods1184.62%
▷ Protected methods00.00%
▷ Private methods215.38%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
3 PNG files occupy 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
templates/card-single/thumbnail.png25.85KB10.50KB▼ 59.39%
templates/card-tableformat/thumbnail.png26.41KB10.62KB▼ 59.80%
templates/card-bio/thumbnail.png39.47KB14.93KB▼ 62.18%