84% cmp-sourcepoint

Code Review | CMP-Sourcepoint Plugin

WordPress plugin CMP-Sourcepoint Plugin scored84%from 54 tests.

About plugin

  • Plugin page: cmp-sourcepoint
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8
  • WordPress version: 6.3.1
  • First release: Mar 8, 2019
  • Latest release: Mar 8, 2019
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: handelsblattmediagroup (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /651 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.64ms] Passed 4 tests

Server-side resources used by CMP-Sourcepoint Plugin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.06 ▲0.5966.00 ▲22.22
Dashboard /wp-admin3.33 ▲0.0247.35 ▼8.06
Posts /wp-admin/edit.php3.38 ▲0.0252.16 ▲0.17
Add New Post /wp-admin/post-new.php5.91 ▲0.0299.71 ▼6.72
Media Library /wp-admin/upload.php3.25 ▲0.0236.53 ▼3.96
cmp-sourcepoint /wp-admin/options-general.php?page=cmp-sourcepoint3.2230.18

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 8 new options
New WordPress options
pluginPath
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
cmp-config
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for CMP-Sourcepoint Plugin
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,842 ▲8114.98 ▲0.6330.67 ▲28.6644.61 ▼0.09
Dashboard /wp-admin2,199 ▲195.61 ▼0.0791.85 ▲0.6041.27 ▲0.57
Posts /wp-admin/edit.php2,104 ▲72.15 ▲0.1241.07 ▲2.9136.31 ▲1.82
Add New Post /wp-admin/post-new.php1,529 ▼623.22 ▲4.78620.50 ▲0.1451.68 ▼10.05
Media Library /wp-admin/upload.php1,401 ▲14.24 ▲0.06100.90 ▼2.8845.57 ▼1.15
cmp-sourcepoint /wp-admin/options-general.php?page=cmp-sourcepoint8061.9624.8725.89

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
  • This plugin does not fully uninstall, leaving 8 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • cmp-config
    • widget_recent-posts
    • pluginPath
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/cmp-sourcepoint/cmp-sourcepoint.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 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
4 plugin tags: cmp, consent, dsgvo, gdpr

cmp-sourcepoint/cmp-sourcepoint.php 92% from 13 tests

"CMP-Sourcepoint Plugin" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important 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 glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected87 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1391063
JavaScript22324

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected