83% neos-connector-for-fakturama

Code Review | Neos Connector for Fakturama

WordPress plugin Neos Connector for Fakturama scored83%from 54 tests.

About plugin

  • Plugin page: neos-connector-fo...
  • Plugin version: 0.0.14
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8
  • WordPress version: 6.3.1
  • First release: Sep 21, 2016
  • Latest release: Oct 7, 2017
  • Number of updates: 62
  • Update frequency: every 6.2 days
  • Top authors: neo2oo5 (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

20+ active /1,575 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.18MB] [CPU: ▼7.51ms] Passed 4 tests

This is a short check of server-side resources used by Neos Connector for Fakturama
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1239.50 ▼4.16
Dashboard /wp-admin3.50 ▲0.2057.30 ▲4.10
Posts /wp-admin/edit.php3.62 ▲0.2654.09 ▼2.61
Add New Post /wp-admin/post-new.php6.08 ▲0.2090.12 ▼24.30
Media Library /wp-admin/upload.php3.43 ▲0.2038.96 ▲1.03
Fakturama /wp-admin/options-general.php?page=neosconnectorforfakturama3.37253.26

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Neos Connector for Fakturama
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲6214.72 ▲0.451.58 ▼0.2142.22 ▲2.28
Dashboard /wp-admin2,232 ▲525.64 ▲0.1185.38 ▼9.1744.38 ▲0.16
Posts /wp-admin/edit.php2,134 ▲312.13 ▲0.1934.10 ▼6.0335.96 ▲0.75
Add New Post /wp-admin/post-new.php1,559 ▲3323.58 ▲0.52644.06 ▼23.6854.31 ▼1.23
Media Library /wp-admin/upload.php1,434 ▲344.15 ▼0.0698.73 ▼6.6243.80 ▼1.48
Fakturama /wp-admin/options-general.php?page=neosconnectorforfakturama8762.1328.0229.24

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=neosconnectorforfakturama
    • > Warning in wp-content/plugins/neos-connector-for-fakturama/neosconnectorforfakturama-admin.php+391
    file_get_contents(): Peer certificate CN=`*.kasserver.com' did not match expected CN=`affilate.neosuniverse.de'
    • > GET request to /wp-admin/options-general.php?page=neosconnectorforfakturama
    • > Warning in wp-content/plugins/neos-connector-for-fakturama/neosconnectorforfakturama-admin.php+391
    file_get_contents(): Failed to enable crypto
    • > GET request to /wp-admin/options-general.php?page=neosconnectorforfakturama
    • > Warning in wp-content/plugins/neos-connector-for-fakturama/neosconnectorforfakturama-admin.php+391
    file_get_contents(https://affilate.neosuniverse.de): failed to open stream: operation failed

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
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
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention: The official readme.txt might help

neos-connector-for-fakturama/neosconnectorforfakturama.php 85% from 13 tests

"Neos Connector for Fakturama" version 0.0.14's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("neos-connector-for-fakturama.php" instead of "neosconnectorforfakturama.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected1,063 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP5413109956
PO File14453107

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity24.60
▷ Minimum class complexity5.00
▷ Maximum class complexity55.00
Average method complexity3.68
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods44
▷ Static methods511.36%
▷ Public methods2556.82%
▷ Protected methods00.00%
▷ Private methods1943.18%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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