84% influenet

Code Review | Influenet

WordPress plugin Influenet scored84%from 54 tests.

About plugin

  • Plugin page: influenet
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.3.2
  • WordPress version: 6.3.1
  • First release: Feb 3, 2020
  • Latest release: Feb 3, 2020
  • Number of updates: 3
  • Update frequency: every 3.3 days
  • Top authors: influenet (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /491 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
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼3.55ms] Passed 4 tests

Server-side resources used by Influenet
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0540.05 ▼2.70
Dashboard /wp-admin3.36 ▲0.0552.56 ▲0.88
Posts /wp-admin/edit.php3.47 ▲0.1149.02 ▼0.94
Add New Post /wp-admin/post-new.php5.94 ▲0.0688.82 ▼8.90
Media Library /wp-admin/upload.php3.28 ▲0.0537.24 ▼1.64

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 269 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Influenet
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.47 ▼0.111.80 ▲0.0244.25 ▲4.82
Dashboard /wp-admin2,198 ▲275.61 ▼0.0487.14 ▼4.4984.11 ▲37.43
Posts /wp-admin/edit.php2,112 ▲121.99 ▲0.0036.08 ▼3.8537.36 ▲3.16
Add New Post /wp-admin/post-new.php1,539 ▼623.16 ▼0.10733.06 ▲39.3555.21 ▲1.31
Media Library /wp-admin/upload.php1,409 ▲94.18 ▼0.0796.25 ▼20.5972.02 ▲21.26

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/influenet/inc/influenet-admin.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/influenet/influenet.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Screenshots: Screenshot #1 (Enter your API KEY) image missing
The official readme.txt is a good inspiration

influenet/influenet.php 92% from 13 tests

The main file in "Influenet" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 190 characters long)

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
Good job! No executable or dangerous file extensions detected632 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
CSS2120298
PHP315083258
PO File1303276

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity17.00
▷ Minimum class complexity1.00
▷ Maximum class complexity33.00
Average method complexity2.88
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods17
▷ Static methods211.76%
▷ Public methods1588.24%
▷ Protected methods00.00%
▷ Private methods211.76%
Functions0
▷ Named functions00.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
254 compressed PNG files occupy 0.24MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/png/la.png0.55KB0.70KB0.00%
images/png/kw.png0.47KB0.66KB0.00%
images/png/nf.png0.59KB0.68KB0.00%
images/flags/hr.png0.51KB0.63KB0.00%
images/png/ke.png0.56KB0.69KB0.00%