84% sensemo

Code Review | Sensemo

WordPress plugin Sensemo scored84%from 54 tests.

About plugin

  • Plugin page: sensemo
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.4.2
  • WordPress version: 6.3.1
  • First release: Dec 1, 2015
  • Latest release: Jul 9, 2016
  • Number of updates: 17
  • Update frequency: every 15.8 days
  • Top authors: vtricity (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /581 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.40ms] Passed 4 tests

Analyzing server-side resources used by Sensemo
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0438.49 ▲0.73
Dashboard /wp-admin3.35 ▲0.0044.58 ▼17.43
Posts /wp-admin/edit.php3.40 ▲0.0445.62 ▼2.84
Add New Post /wp-admin/post-new.php5.93 ▲0.0485.43 ▼5.88
Media Library /wp-admin/upload.php3.27 ▲0.0436.56 ▲0.57

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Sensemo
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.17 ▼0.101.63 ▼0.0437.39 ▼3.94
Dashboard /wp-admin2,214 ▲345.59 ▼0.0886.01 ▲0.9238.23 ▼4.65
Posts /wp-admin/edit.php2,116 ▲162.01 ▼0.0332.93 ▼2.3435.23 ▲2.88
Add New Post /wp-admin/post-new.php1,539 ▲1323.10 ▼0.55628.60 ▼36.2755.10 ▲0.13
Media Library /wp-admin/upload.php1,416 ▲164.21 ▼0.17103.74 ▲2.8246.08 ▲3.39

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sensemo/sensemo.php:12

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 Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: feedback, emotions, poll, sensemo, feelings

sensemo/sensemo.php Passed 13 tests

The entry point to "Sensemo" version 1.0.1 is a PHP file that has certain tags in its header comment area
111 characters long description:
Easily include Sensemo feedback poll shortcodes. Sensemo is the world's first emotional feedback cloud service.

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 detected250 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11510250

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.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
3 PNG files occupy 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/SensemoLogoAlpha80h.png28.58KB8.66KB▼ 69.70%
img/SensemoNameLogo60.png22.70KB7.32KB▼ 67.75%
img/SensemoReportIcon60.png17.52KB4.47KB▼ 74.46%