90% freshmarketer

Code Review | Freshmarketer

WordPress plugin Freshmarketer scored90%from 54 tests.

About plugin

  • Plugin page: freshmarketer
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.7
  • WordPress version: 6.3.1
  • First release: Oct 21, 2017
  • Latest release: Nov 7, 2017
  • Number of updates: 6
  • Update frequency: every 3.0 days
  • Top authors: freshmarketer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /1,898 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

A check of server-side resources used by Freshmarketer
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.81 ▲0.63
Dashboard /wp-admin3.32 ▼0.0352.53 ▼9.41
Posts /wp-admin/edit.php3.37 ▲0.0148.88 ▼7.84
Add New Post /wp-admin/post-new.php5.92 ▲0.0390.64 ▼15.00
Media Library /wp-admin/upload.php3.24 ▲0.0139.69 ▼0.99

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
freshmarketer_url

Browser metrics Passed 4 tests

An overview of browser requirements for Freshmarketer
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲8014.37 ▼0.182.23 ▲0.3740.29 ▼5.82
Dashboard /wp-admin2,210 ▲365.70 ▲0.0690.22 ▼13.0272.20 ▲29.43
Posts /wp-admin/edit.php2,124 ▲242.18 ▲0.2039.23 ▼2.5830.57 ▼5.57
Add New Post /wp-admin/post-new.php1,551 ▲2323.81 ▲0.54806.80 ▲116.5539.56 ▼20.60
Media Library /wp-admin/upload.php1,424 ▲244.27 ▲0.06111.24 ▼0.9944.68 ▼3.46

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: heatmaps, optimization, ab testing, cro

freshmarketer/freshmarketer.php 92% from 13 tests

"Freshmarketer" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 239 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 detected387 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP43369176
CSS110131
JavaScript218280

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/images/freshmarketer-icon.png0.62KB0.46KB▼ 26.18%
public/images/freshmarketer-logo.png5.54KB2.95KB▼ 46.80%