90% subscriber-stats-for-mailpoet

Code Review | Subscriber Stats For Mailpoet

WordPress plugin Subscriber Stats For Mailpoet scored90%from 54 tests.

About plugin

  • Plugin page: subscriber-stats-...
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.1
  • WordPress version: 6.3.1
  • First release: Mar 7, 2019
  • Latest release: Mar 7, 2019
  • Number of updates: 2
  • Update frequency: every 6.0 days
  • Top authors: sparkjoystudios (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /670 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.16MB] [CPU: ▼5.99ms] Passed 4 tests

Server-side resources used by Subscriber Stats For Mailpoet
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1142.17 ▼0.43
Dashboard /wp-admin3.46 ▲0.1649.83 ▼2.57
Posts /wp-admin/edit.php3.56 ▲0.2045.13 ▼3.06
Add New Post /wp-admin/post-new.php6.15 ▲0.2774.62 ▼17.88
Media Library /wp-admin/upload.php3.40 ▲0.1737.43 ▼0.36

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 26 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
db_upgraded
sjmailsub_activate
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Subscriber Stats For Mailpoet: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲6513.26 ▼1.121.72 ▼0.3244.66 ▼1.85
Dashboard /wp-admin2,231 ▲465.91 ▲0.10102.13 ▼12.8838.90 ▼3.50
Posts /wp-admin/edit.php2,111 ▲222.04 ▲0.0134.27 ▼5.8735.61 ▲2.41
Add New Post /wp-admin/post-new.php1,533 ▼123.41 ▲0.16656.07 ▼34.1257.57 ▼3.42
Media Library /wp-admin/upload.php1,401 ▲164.27 ▲0.0597.84 ▼3.2944.28 ▼2.60

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 8 options
    • db_upgraded
    • sjmailsub_deactivate
    • sjmailsub_activate
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 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: email, mailpoet, statistics, newsletter

subscriber-stats-for-mailpoet/subscriber-stats-for-mailpoet.php Passed 13 tests

The entry point to "Subscriber Stats For Mailpoet" version 1.0 is a PHP file that has certain tags in its header comment area
72 characters long description:
Display statistics of individual subscriber engagement through Mailpoet.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin3,787 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
Sass8317331,858
CSS8822551,451
PHP4102256434
JavaScript381543
SVG1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Methods11
▷ Static methods11100.00%
▷ Public methods1090.91%
▷ Protected methods00.00%
▷ Private methods19.09%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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