90% moreniche-soft-pixel-tracking

Code Review | MoreNiche Soft Pixel Tracking

WordPress plugin MoreNiche Soft Pixel Tracking scored90%from 54 tests.

About plugin

  • Plugin page: moreniche-soft-pi...
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.3.2
  • WordPress version: 6.3.1
  • First release: Jan 25, 2018
  • Latest release: Feb 26, 2020
  • Number of updates: 12
  • Update frequency: every 63.5 days
  • Top authors: moreniche (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /3,860 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
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by MoreNiche Soft Pixel Tracking
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.50 ▼2.53
Dashboard /wp-admin3.31 ▲0.0155.69 ▲1.40
Posts /wp-admin/edit.php3.36 ▲0.0052.67 ▲3.18
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.07 ▼12.23
Media Library /wp-admin/upload.php3.23 ▲0.0039.46 ▲4.07

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for MoreNiche Soft Pixel Tracking
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲6514.47 ▲0.222.45 ▼0.2643.38 ▼2.28
Dashboard /wp-admin2,203 ▲155.90 ▲1.00103.11 ▼5.9839.02 ▼4.27
Posts /wp-admin/edit.php2,089 ▼32.05 ▲0.0438.18 ▼4.0533.04 ▼4.73
Add New Post /wp-admin/post-new.php1,533 ▲1423.15 ▲0.08624.79 ▼60.9348.21 ▼5.70
Media Library /wp-admin/upload.php1,388 ▼04.18 ▼0.0894.13 ▼13.9344.10 ▼2.40

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • 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
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
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, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: tracking, moreniche, pixel

moreniche-soft-pixel-tracking/moreniche-soft-pixel-tracking.php Passed 13 tests

The principal PHP file in "MoreNiche Soft Pixel Tracking" v. 1.0.4 is loaded by WordPress automatically on each request
57 characters long description:
This plugin adds MoreNiche specific code to your website.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin30 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP151530

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin