84% smilee-setup

Code Review | Smilee.io

WordPress plugin Smilee.io scored 84% from 54 tests.

About plugin

  • Plugin page: smilee-setup
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Nov 2, 2017
  • Latest release: Jul 31, 2019
  • Number of updates: 28
  • Update frequency: every 22.7 days
  • Top authors: smileeio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 807 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.23ms] Passed 4 tests

An overview of server-side resources used by Smilee.io
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.21 ▼0.54
Dashboard /wp-admin3.32 ▲0.0143.97 ▼4.19
Posts /wp-admin/edit.php3.37 ▲0.0141.52 ▼8.74
Add New Post /wp-admin/post-new.php5.90 ▲0.0191.06 ▼4.77
Media Library /wp-admin/upload.php3.24 ▲0.0132.60 ▼3.20

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: 1 new table, 6 new options
New tables
wp_smilee_setup
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Smilee.io
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲10613.49 ▼0.914.65 ▲3.0642.51 ▲2.56
Dashboard /wp-admin2,219 ▲315.84 ▲0.9898.73 ▼6.6043.27 ▼2.67
Posts /wp-admin/edit.php2,105 ▲162.03 ▲0.0435.58 ▼7.1936.52 ▲0.43
Add New Post /wp-admin/post-new.php1,527 ▲1317.69 ▲0.18650.67 ▼46.2865.57 ▲5.93
Media Library /wp-admin/upload.php1,407 ▲194.19 ▲0.00105.27 ▼2.0845.59 ▼3.68

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

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
Even though everything seems fine, this is not an exhaustive test

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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/smilee-setup/includes/smilee-setup-options.php:13

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% 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:
  • Screenshots: A description for screenshot #1 is required in smilee-setup/assets to your readme.txt
The official readme.txt is a good inspiration

smilee-setup/smilee-setup.php 92% from 13 tests

The main PHP script in "Smilee.io" version 1.0.1 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin211 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP635110173
PO File16631
CSS1107

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity4.00
▷ Minimum class complexity1.00
▷ Maximum class complexity7.00
Average method complexity1.53
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods17
▷ Static methods15.88%
▷ Public methods1482.35%
▷ Protected methods00.00%
▷ Private methods317.65%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin