90% ember-companion

Code Review | Ember Companion

WordPress plugin Ember Companion scored90%from 54 tests.

About plugin

  • Plugin page: ember-companion
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.6.1
  • WordPress version: 6.3.1
  • First release: Nov 11, 2016
  • Latest release: Nov 19, 2016
  • Number of updates: 2
  • Update frequency: every 1.5 days
  • Top authors: NimbusThemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /6,362 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Ember Companion
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.58 ▲1.04
Dashboard /wp-admin3.31 ▼0.0346.42 ▼16.29
Posts /wp-admin/edit.php3.36 ▲0.0144.16 ▼0.64
Add New Post /wp-admin/post-new.php5.89 ▲0.0180.85 ▼12.69
Media Library /wp-admin/upload.php3.23 ▲0.0136.10 ▲1.39

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Ember Companion
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6813.23 ▼1.041.67 ▼0.2443.43 ▼0.37
Dashboard /wp-admin2,220 ▲325.04 ▼0.86110.44 ▼8.2143.76 ▲0.93
Posts /wp-admin/edit.php2,100 ▲112.07 ▲0.0536.17 ▲1.4833.84 ▲0.43
Add New Post /wp-admin/post-new.php1,528 ▼023.31 ▲4.96665.28 ▲34.6854.69 ▲3.71
Media Library /wp-admin/upload.php1,399 ▲114.21 ▲0.0296.43 ▼9.2543.73 ▼4.79

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Tags: Please add at least on tag
You can take inspiration from this readme.txt

ember-companion/ember-companion.php Passed 13 tests

The main file in "Ember Companion" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
61 characters long description:
Add many additional features and settings to the Ember theme.

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
Success! There were no dangerous files found in this plugin837 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP315176837

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity15.25
▷ Minimum class complexity10.00
▷ Maximum class complexity28.00
Average method complexity4.56
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin