78% wps-mypace-ctt-adapter

Code Review | WPS Mypace CTT Adapter

WordPress plugin WPS Mypace CTT Adapter scored78%from 54 tests.

About plugin

  • Plugin page: wps-mypace-ctt-ad...
  • Plugin version: 0.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.7.2
  • WordPress version: 6.3.1
  • First release: Mar 1, 2017
  • Latest release: Mar 1, 2017
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: Toro_Unit (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /778 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by WPS Mypace CTT Adapter
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.24 ▼0.16
Dashboard /wp-admin3.31 ▲0.0143.07 ▼5.02
Posts /wp-admin/edit.php3.37 ▲0.0143.67 ▼2.90
Add New Post /wp-admin/post-new.php5.90 ▲0.0178.06 ▼21.35
Media Library /wp-admin/upload.php3.24 ▲0.0136.93 ▲1.45

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for WPS Mypace CTT Adapter
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.21 ▼1.421.74 ▲0.0544.15 ▲2.94
Dashboard /wp-admin2,206 ▲154.88 ▼1.01100.75 ▲0.4538.16 ▼7.95
Posts /wp-admin/edit.php2,092 ▲32.04 ▼0.0139.48 ▲4.5436.73 ▲2.51
Add New Post /wp-admin/post-new.php1,537 ▲918.56 ▲0.18611.16 ▲4.5758.89 ▲8.83
Media Library /wp-admin/upload.php1,388 ▼34.24 ▲0.0098.27 ▲2.0342.63 ▼2.81

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% from 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 0% 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 fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/wps-mypace-ctt-adapter/bin/install-dependencies.php
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/wps-mypace-ctt-adapter/tests/test-sample.php:11
    • > PHP Fatal error
      require_once(): Failed opening required '/tmp/wordpress-tests-lib/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/wps-mypace-ctt-adapter/tests/bootstrap.php on line 18
    • > PHP Warning
      require_once(/tmp/wordpress-tests-lib/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/wps-mypace-ctt-adapter/tests/bootstrap.php on line 18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wps-mypace-ctt-adapter/wps-mypace-ctt-adapter.php:28
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/wps-mypace-ctt-adapter/tests/test-ogp.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: seo, title

wps-mypace-ctt-adapter/wps-mypace-ctt-adapter.php 77% from 13 tests

The entry point to "WPS Mypace CTT Adapter" version 0.2.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Git Repository: An alternative Git repository was detected
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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 plugin360 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP73871163
Bourne Shell121799
YAML17039
XML22031
JSON10028

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity2.67
▷ Minimum class complexity1.00
▷ Maximum class complexity6.00
Average method complexity1.38
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods13
▷ Static methods215.38%
▷ Public methods1076.92%
▷ Protected methods17.69%
▷ Private methods215.38%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin